help me on setting auto number property for a column

  • hi,

    here i am trying to create a table in which i want give a property autonumber(i.e increments simultaneously for each new row) to a field.pls tell me the procedure for this in sql server2005

    i tried as,

    create table Table_Num

    num int primary key,

    voice int auto)

    but it is not working.pls tell me the syntax for setting auto number property for a particular prperty.

    thanx in advance,

    rammohan

  • CREATE TABLE xyz

    (TABLE_NUM INT PRIMARY KEY,

    VOICE INT IDENTITY(1,1))

    -Ram

     

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply