Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Length

Author  Topic 

sql_team
Starting Member

2 Posts

Posted - 2005-03-02 : 04:22:38
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.

This is the paragragh I found while reading it across the internet, in that what is lenth of 4

- Saravnana

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2005-03-02 : 04:48:51
You might want to read the manual, BOL
Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.
Length for a numeric data type is the number of bytes used to store the number.

rockmoose
Go to Top of Page
   

- Advertisement -