Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert with identity column
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00909728
Message ID:
00919947
Vues:
8
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/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform