Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    In cousin's house
    Posts
    303

    Unanswered: Field autoincrement

    hi,
    Is their anybody knows how to make field in Sql Server autoincrement?
    pls. help me.

  2. #2
    Join Date
    Feb 2004
    Location
    San Antonio, TX
    Posts
    565
    i assume that you want to start with a number like 1 and increment by 1 to infinity. If this is the case you are looking for the indentity function.

    BOOKS ONLINE {IDENTITY (Function)}

  3. #3
    Join Date
    Oct 2004
    Location
    In cousin's house
    Posts
    303
    hi,
    thanks work fine

  4. #4
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    ...but don't use the Infinity datatype. It really eats up the drive space.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

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