AutoNumber

  • How is possible to have an autonumber field type in Sql Server;

  • Do you mean autoincrement ? If so, here it is:

    create table my_table

    (

    field_with_autonumber int identity(1,1)

    other_fields int

    )

     

  • There is no autonumber field type but there are types of fields that can be given the Identity property that will automatically be incremented when a row is inserted.  See Books On Line "Creating and Modifying Identifier Columns".

    Steve

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

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