- 论坛徽章:
- 0
|
求教关于ignore_dup_row的设置
按照您的脚本一字不差进行操作,在create index的时候提示Warning: Clustered index 'index1' has been created with ignore_dup_row on table 'test_1', which uses data-only locking. ignore_dup_row cannot be enforced for subsequent insertions and updates.
但是在sp_help test_1时
仍然:
index1 clustered, allow duplicate rows located on default
col1
我怀疑是不是与版本有关??
---------------------------------------------------------------------------------
哈哈 你的表建立时缺省 为 DOL 表 我建立时为 APL 表这个是唯一差别!!
在建表的脚本最后 加 LOCK ALLPAGES 重新看看!!
create table test_1 (col1 char( not null ,col2 int not null , col3 smalldatetime null) LOCK ALLPAGES
go |
|