شمیمه اکبری
پنج شنبه 16 آذر 1391, 22:53 عصر
در دیتابیس من یک سری از اندیکس های کلید اصلی از نوع nonclustered هستند برای تبدیل آنها به کلاستر من از دستور زیر استفاده کردم ولی خطا می ده لطفاً راهنمایی کنید.چه طوری میتونم این تبدیل انجام بدم.
alter table dbo.Kardex add constraint PK_Kardex primary key CLUSTERED (ID_Kardex)
with (statistics_norecompute=off,ignore_dup_key=off,all ow_row_locks=on,allow_page_locks=on)
on [primary]
go
Msg 1779, Level 16, State 0, Line 1
Table 'Kardex' already has a primary key defined on it.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
alter table dbo.Kardex add constraint PK_Kardex primary key CLUSTERED (ID_Kardex)
with (statistics_norecompute=off,ignore_dup_key=off,all ow_row_locks=on,allow_page_locks=on)
on [primary]
go
Msg 1779, Level 16, State 0, Line 1
Table 'Kardex' already has a primary key defined on it.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.