Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert with identity column
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00909728
Message ID:
00919947
Views:
9
SET identity_insert off

this is assuming that the id will not exist in the table. If there is a possibility the only other method i know would be to us a field list.

regards,


>want to copy / insert a record into a table from another record from the same table. I'm using
>
>
>insert into statefl select * from statefl where st = 'AL'
>
>
>I get the Identity error.
>Is there such a thing as "except a field"?
>Can you show me how to do this?
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Previous
Reply
Map
View

Click here to load this message in the networking platform