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 2008 Forums
 Transact-SQL (2008)
 Maximum values for datatypes...

Author  Topic 

malachi151
Posting Yak Master

152 Posts

Posted - 2011-12-21 : 12:41:51
Can anyone point me to a script that would show the maximum (and minimum) values for any given numeric datatype, include all precisions and scales for decimal types?

X002548
Not Just a Number

15586 Posts

Posted - 2011-12-21 : 13:16:29
Look in Books Online (BOL)?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

malachi151
Posting Yak Master

152 Posts

Posted - 2011-12-21 : 14:51:42
No, I meant something like showing the actual numbers instead something like: - 1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308.

I mean for decimal it would be something like:

decimal(1,0) | 9 | -9
decimal(2,0) | 99 | -99
decimal(3,0) | 999 | -999

etc., etc. but with all possible values for all numeric data types with all precisions and scales.
Go to Top of Page
   

- Advertisement -