|
-
May 31st, 2002, 08:03 AM
#1
Thread Starter
Hyperactive Member
SQL Server Precision Scale
If a field is an integer in SQL Server with the precision scale set to 4, what is the largest number it can hold?
-
May 31st, 2002, 08:38 AM
#2
Fanatic Member
- If at first you dont succeed, then give up, cause you will never will!
-
May 31st, 2002, 08:39 AM
#3
Frenzied Member
Integers: (-2,147,483,648) - (2,147,483,647) (same as VB Long)
SmallInt: (-32768) - (32767) (same as VB Integer)
TinyInt: (0) - (255)
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
May 31st, 2002, 08:42 AM
#4
Thread Starter
Hyperactive Member
Who's right?
-
May 31st, 2002, 09:47 AM
#5
A length of 4 means 4 bytes so numbers from -2,147,483,648 through 2,147,483,647. is right
-
May 31st, 2002, 09:51 AM
#6
Thread Starter
Hyperactive Member
-
May 31st, 2002, 10:02 AM
#7
boy is my face red, while being technically right about the length i should really learn to read the questions
-
Jun 6th, 2002, 07:53 AM
#8
Frenzied Member
From MSDN:
For example, an int data type can hold 10 digits, is stored in 4 bytes, and does not accept decimal points. The int data type has a precision of 10, a length of 4, and a scale of 0.
You can't change the precision, length or scale of an Integer in SQL Server... can you?
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
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
|