USE DBNAME SELECT column_name 'Column Name',data_type 'Data Type',CHARacter_maximum_length 'Maximum Length',data_decimal(p,s) 'DECIMAL PRECISION',COLUMNPROPERTY (OBJECT_ID(Table_Name),Column_Name,'IsIdentity') as FieldIdentity FROM information_schema.columns WHERE table_name = 'TBNAME' ;
data_decimal(p,s)
NUMERIC_PRECISION
NUMERIC_SCALE
'62313539.54','03615'
62313539.54,03615
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)