|
-
Jan 23rd, 2008, 01:10 AM
#1
Thread Starter
Member
Identity_insert ?/???
When I try using the "insert into select from"....for some of my tables I get this error:
An explicit value for the identity column in table 'db1' can only be specified when a column list is used and IDENTITY_INSERT is ON
i got some help frm google.
SET IDENTITY_INSERT YourTable ON
INSERT INTO YourTable
SELECT * FROM YourOtherTable
SET IDENTITY_INSERT YourTable OFF
i used it bt again error comes as syntax error for both lines ON/OFF
wht does it mean by" IDENTITY_INSERT is ON"
wht to do?
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|