Set, Identity_insert on for the table variable in sql server 2005
How to set, identity_insert on for the table variable in sql server 2005 ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
adam abdulPosted Aug 16, 2010, 11:51 PM
In the below query i have used identity for field id, and first (1) is starting position and second (1) is incrementing value.
create table tablename (id int primary key identity(1,1),name varchar(30))