|
-
Feb 25th, 2000, 06:58 AM
#1
Thread Starter
Hyperactive Member
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
-
Feb 26th, 2000, 11:42 AM
#2
Frenzied Member
One of my books says nothing the other says you're done when you insert the highest value possible...
-
Feb 27th, 2000, 01:26 AM
#3
Guru
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.....
-
Feb 27th, 2000, 11:17 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|