Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
I gave a field with the datatype of numeric(8,2) in my table. Now i want to know how many values should be allowed to enter into that field,guide me soon....
Posted

Refer MSDN page for precision, scale and length of SQL data types: http://msdn.microsoft.com/en-us/library/ms190476.aspx[^]
 
Share this answer
 
v2
Comments
Priyaaammu 16-May-12 3:00am    
K..but how to set maximum length in design page for numeric?
numeric(p,s)
Where p is a precision value; s is a scale value.

For example, numeric(6,2) is a number that has 4 digits before the decimal and 2 digits after the decimal.
 
Share this answer
 
Comments
Priyaaammu 16-May-12 3:00am    
K..but how to set maximum length in design page for numeric?
bhagirathimfs 16-May-12 3:37am    
Actually this size of numeric is database dependent.

This link may help you to know the max size of numeric.
http://drupal.org/node/159605
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900