Quote:
Originally Posted by .d0p3_'
if i try this im getting this error:
EDIT: Im using SQL2008 R2
Code:
Msg 4712, Level 16, State 1, Line 1
Cannot truncate table 'dbo._RefObjCommon' because it is being referenced by a FOREIGN KEY constraint.
Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity column in table 'SRO_VT_SHARD_INIT.dbo._RefObjCommon' can only be specified when a column list is used and IDENTITY_INSERT is ON.
|
First
Right click on the table < Press Design
uncheck the Foreign key "you can see it clearly"
and close & save table
then Right Click on the table
Scrit table as
Create to
New Query editor window
And delete this " IDENTITY(1,1) "
Now Delete the table manually > Right click Delete
Then press Execute to the query , now you've created a table without identity
< use the query i gave before to copy the table and it will work fine >
if you cant do things i said above add my facebook :
,i'll help you via TeamViewer , regards