0

我有这个错误信息:

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 代码调用我的存储过程时它给了我错误,而当我在管理工作室时它没有给我错误?

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

谢谢

4

1 回答 1

1

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

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

于 2012-02-21T20:38:09.830 回答