dcsimg
LinkedIn
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

SQLServer - insert IDENTITY

Before inserting IDENTITY values in SQLServer you have to turn on IDENTITY_INSERT.


advertisement

Before inserting IDENTITY values in SQLServer you have to turn on IDENTITY_INSERT as here:

SET IDENTITY_INSERT [foo_table] ON
INSERT INTO foo_table (...) VALUES (...)
...
SET IDENTITY_INSERT [foo_table] OFF


   
Email AuthorEmail Author
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date