Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to increament id_no automatically.i have enabled its autoincrement id in server 2005 but i have no idea about its related query used in stored procedure.so that i can insert my all recored corresspondence to autoincrement id.........
Posted
Updated 22-Nov-11 22:21pm
v2

You don't need to do anything except not insert the ID column when importing your data, the server will generate a ID column for you.
 
Share this answer
 
The auto Increment is not for perticular query or stored procedure, the ID_NO column will be incremented automatically for all the inserts,

whatever the way you insert a record in the table. say through, direct query, from stored procedures or from triggers, the ID column will Increment by the value you have set.
 
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