Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How-To Help Insert Record Overide Idenity
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01056829
Message ID:
01056832
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>Somehow, a key record got deleted. This record has a primary key value of -1 in the field called PatientID. The patientID field is an Identity column. Is there a way to insert a new record and put the -1 value back into the table?
>
SET IDENTITY_INSERT MyTable ON
INSERT INTO MyTable (...) VALUES (...)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform