create a primary key Index after store column index
-
2012年8月4日 11:27
When I create a primary key Index on table which already has store column index , It display syntax error
Although I create the primary key from SSMS , Design a table , Set Primary key , Then Save ,
I did not write any code and the error message is syntax error !!
khaled Mohamed
全部回复
-
2012年8月4日 11:53
-
2012年8月6日 2:07
It seems to work ok in both designer and TSQL in CU2 (11.0.2325). Which version version are you using. Can you post a sample table create script that is failing?
If you try it in TSQL you may get a better error message.
E.g.
alter table mytable add constraint PK_Col1 primary key clustered (Col1);
- 已编辑 Stephen Strong - VTSP SQL 2012年8月6日 2:09
- 已建议为答案 Eileen ZhaoMicrosoft Contingent Staff, Moderator 2012年8月7日 9:26
- 已标记为答案 Eileen ZhaoMicrosoft Contingent Staff, Moderator 2012年8月27日 2:02

