Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index counter

Status
Not open for further replies.

wallaceoc80

Programmer
Jul 7, 2004
182
0
0
GB
I am importing data from a MS Access database into a SQL Server database. In the MS Access db I have a table called FAQ that has a FAQID column which is an auto increment number that increments by 1 every time a new row is entered into the table.

Is it possible to do the same type thing with SQL Server? In my SQL Server table I again have an FAQ table with FAQID as the primary key. It is this FAQID column that I want to increment by 1 every time a new row is created.

Regards,

Wallace
 
Look into identity fields, with INCREMENT(1,1). Same thing as autonumber.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top