SQL Server question...

Results 1 to 2 of 2

Thread: SQL Server question...

  1. #1
    Join Date
    Dec 1969

    Default SQL Server question...

    does someone know how to set a field in an sql server table to when you insert a new row the field auto increments with a unique id? if so.. can you show me the t-sql for it?<BR>thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: SQL Server question...

    Make the type integer, set it to identity, increment 1, seed 1.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts