/ Published in: SQL
Simple but...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DECLARE @TableName sysname; SELECT @TableName = 'Users' SELECT c.column_id , c.name , sys.types.name , c.is_nullable FROM sys.columns c INNER JOIN sys.types ON c.system_type_id = sys.types.system_type_id WHERE OBJECT_NAME(c.object_id) = @TableName ORDER BY c.column_id