Results 1 to 4 of 4

Thread: Question about SQL Server

  1. #1

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    I have a question about the way SQL Server works and I didn't know where else to go to get an answer. I have a column in one of my tables. It's datatype is an integer and it is set to auto-increment. Since this column is set as an integer, it has a maximum value of 2,147,483,647 and since it is set to auto-increment, I was wondering if, when it reaches that value, it will start back over at 1, or if it will throw a tantrum and my whole database will be screwed? I'm hoping it will start back at 1, but that's what I need to know. Thank you, and sorry for the "non-VB related" question.
    -Ryan
    I smell varmint poontang, and the only good varmint poontang is dead varmint poontang...

    -Bill Murray, Caddyshack

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    One of my books says nothing the other says you're done when you insert the highest value possible...

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Do you really plan on having more than 2 billion records in a table, or are you just curious?

    The decimal/numeric data type can be up to 10 ^ 38 if you're concerned you might hit the 2 billion number limit. This is the largest field an identity column can be, or you can use a GUID/Uniqueidentifier as well.....

  4. #4
    Guest

    Post Arithmetic overflow

    it will not start back from 1. you will not be able to insert further records as you will be getting arithmetic overflow error while converting int to identity

    vinoo




    I have a question about the way SQL Server works and I didn't know where else to go to get an answer. I have a column in one of my tables. It's datatype is an integer and it is set to auto-increment. Since this column is set as an integer, it has a maximum value of 2,147,483,647 and since it is set to auto-increment, I was wondering if, when it reaches that value, it will start back over at 1, or if it will throw a tantrum and my whole database will be screwed? I'm hoping it will start back at 1, but that's what I need to know. Thank you, and sorry for the "non-VB related" question.

Posting Permissions

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



Click Here to Expand Forum to Full Width