I can get the column size of varchar and other character columns with.
But it doesn't show the storage size of int, bit, etc., so I can't sum them up.
Is there a way to get the record size including columns like int, smalldatetime, bit, etc?
I'm not looking for the maximum size of the rows in the table, just the designed row size.
Auguy
Sylvania/Toledo Ohio
Code:
SELECT column_name as 'Column Name', data_type as 'Data Type',
character_maximum_length as 'Max Length'
FROM information_schema.columns
WHERE table_name = 'Customer'
Is there a way to get the record size including columns like int, smalldatetime, bit, etc?
I'm not looking for the maximum size of the rows in the table, just the designed row size.
Auguy
Sylvania/Toledo Ohio