Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How-To Help Insert Record Overide Idenity
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01056829
Message ID:
01056832
Views:
18
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform