- 論壇徽章:
- 0
|
求教關(guān)于ignore_dup_row的設(shè)置
按照您的腳本一字不差進(jìn)行操作,在create index的時(shí)候提示W(wǎng)arning: 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時(shí)
仍然:
index1 clustered, allow duplicate rows located on default
col1
我懷疑是不是與版本有關(guān)??
---------------------------------------------------------------------------------
哈哈 你的表建立時(shí)缺省 為 DOL 表 我建立時(shí)為 APL 表這個(gè)是唯一差別!
在建表的腳本最后 加 LOCK ALLPAGES 重新看看。
create table test_1 (col1 char( not null ,col2 int not null , col3 smalldatetime null) LOCK ALLPAGES
go |
|