Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read schema to get numeric size
Message
 
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01526427
Message ID:
01526428
Views:
53
>I need to determine the size of numeric fields in SQL tables. I know how to get the decimal positions but I cannot find out how to determine the significant positions. Some thing like Numeric(???,4) I need to determine the ??? value. How can I retrieve this information from the SQL schema?
>
>Thanks
>
>Glenn
SELECT NUMERIC_PRECISION,
       NUMERIC_SCALE
FROM INFORMATION_SCHEMA.Columns
WHERE Table_Name = 'YourTable' AND 
      Column_Name = 'ColumnName'
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform