Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
How to set, identity_insert on for the table variable in sql server 2005 ?
Posted
Comments
Prasad Bansi Vagal 16-Aug-10 9:15am    
Reason for my vote of 5
good question

use alter table command in sql to alter the table and make the columns datatype to int first the write identity(1,1) as to start its counter by 1 and to make its increment by 1, when you insert a record just do not include that identity column.

Prasad :-D
 
Share this answer
 
Hi Prasad,

This is not what i need !!!...Get the question properly....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900