Error: 1934 SET options have incorrect settings: 'ARITHABORT'.
2012-12-18 14:38
381 查看
今天对一个Index做了调整,为了提高性能将Index修改为FilteredIndex,结果一个JAVA程序出现了下面的错误:
Error: 1934, Severity: 16, State: 1
INSERT failed because thefollowing SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use withindexed views and/or indexes
on computed columns and/or filtered indexes and/orquery notifications and/or XML data type methods and/orspatial index operations.
抓了一个ProifilerTrace看到出错的语句就是普通的DML插入语句,而且将语句放到SSMS中可以正常执行,但是在程序中一直失败。没有办法将Fliter Index删除程序恢复正常。
后来查到使用Filter Index,要保证一些SET选项正确:
*SettingANSI_WARNINGS to ON implicitly sets ARITHABORT to ON when the databasecompatibility level is set to 90 or higher. If the database compatibility levelis set to 80 or earlier, the ARITHABORT option must explicitly be set to ON.
If the SET options areincorrect, the following conditions can occur:
· The filtered index isnot created.
· The Database Enginegenerates an error and rolls back INSERT, UPDATE, DELETE, or MERGE statementsthat change data in the index.
· Query optimizer does notconsider the index in the execution plan for any Transact-SQL statements.
所以使用Filter Index大家一定要谨慎,而且要经过充分的测试之后再放到正式环境。
Error: 1934, Severity: 16, State: 1
INSERT failed because thefollowing SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use withindexed views and/or indexes
on computed columns and/or filtered indexes and/orquery notifications and/or XML data type methods and/orspatial index operations.
抓了一个ProifilerTrace看到出错的语句就是普通的DML插入语句,而且将语句放到SSMS中可以正常执行,但是在程序中一直失败。没有办法将Fliter Index删除程序恢复正常。
后来查到使用Filter Index,要保证一些SET选项正确:
SET options | Required value |
ANSI_NULLS | ON |
ANSI_PADDING | ON |
ANSI_WARNINGS* | ON |
ARITHABORT | ON |
CONCAT_NULL_YIELDS_NULL | ON |
NUMERIC_ROUNDABORT | OFF |
QUOTED_IDENTIFIER | ON |
If the SET options areincorrect, the following conditions can occur:
· The filtered index isnot created.
· The Database Enginegenerates an error and rolls back INSERT, UPDATE, DELETE, or MERGE statementsthat change data in the index.
· Query optimizer does notconsider the index in the execution plan for any Transact-SQL statements.
所以使用Filter Index大家一定要谨慎,而且要经过充分的测试之后再放到正式环境。
相关文章推荐
- Error: 1934 INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'.
- INSERT failed because the following SET options have incorrect settings: 'ANSI_PADDING'. Verify that
- INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'.
- mysql驱动引起的jdbc4.MySQLSyntaxErrorException: Unknown character set: 'utf8mb4'问题解决
- The "tsconfig.json" file must have compilerOptions.sourceMap set to true
- RabbitVCS(0.14.2)不显示右键设置(settings)菜单,AttributeError: 'gtk.VBox' object has no attribute 'set_visible
- mysql 插入中文时出现ERROR 1366 (HY000): Incorrect string value: '\xC0\xEE\xCB\xC4' for column 'usern ame' at row 1
- 【原创】INSERT 失败,因为下列 SET 选项的设置不正确:'ARITHABORT'
- Loaded plugins: fastestmirror Options Error: Error parsing '': invalid boolean value
- 执行update语句mysql5.6报错ERROR 1292 (22007): Truncated incorrect DOUBLE value: '糖糖的坤大叔'
- Meteor Error: Must pass options.rootUrl or set ROOT_URL in the server environment解决
- INSERT 失败,因为下列 SET 选项的设置不正确: 'ARITHABORT' SET ARITHABORT ON | OFF
- 桌面支持--Stopping the Java Error “Your security settings have blocked
- MySQL 8.0.11 报错[ERROR] [MY-011087] Different lower_case_table_names settings for server ('1')
- INSERT 失败,因为下列 SET 选项的设置不正确: 'ARITHABORT'
- ERROR 1366 (HY000): Incorrect string value: '\xD6\xD0\xCE\xC4' for column XXX at row 1
- error: 'commit' is not possible because you have unmerged files.
- MySQL乱码实战解决ERROR 1366 (HY000): Incorrect string value: '
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program."
- mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual t