Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 仅在asp中设置ARITHABORT失败_Sql_Sql Server 2008_Asp Classic_Arithabort - Fatal编程技术网

Sql 仅在asp中设置ARITHABORT失败

Sql 仅在asp中设置ARITHABORT失败,sql,sql-server-2008,asp-classic,arithabort,Sql,Sql Server 2008,Asp Classic,Arithabort,我收到以下错误消息: SELECT failed because the following SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or query notifications and/or xml data type method

我收到以下错误消息:

SELECT failed because the following SET options have incorrect settings: 'ARITHABORT'.
Verify that SET options are correct for use with indexed views and/or indexes on computed
columns and/or query notifications and/or xml data type methods.
我只想知道为什么当我从asp代码调用我的存储过程时它会给我错误,而当我在ManagementStudio时它不会给我错误

我知道这是因为我在存储过程中使用了一些xml数据,但ManagementStudio和代码之间有什么区别


感谢

Management Studio为您设置了这些选项,它们与通过SQLNCLI等进行连接时应用的默认设置不同。请查看工具>选项>查询执行>SQL Server>高级,您将看到您可以为ARITHABORT等设置各种设置


另外,我不认为这是因为您使用的是XML,我认为这是因为您的存储过程要么显式设置了arithaport,要么是使用相反的设置创建的。

它没有显式设置,对于创建,您的意思是什么?如果我正在创建我的过程并且在不更改选项的情况下不执行它,那么arithabort在创建和执行时应该是相同的吗