sp_columns
返回当前环境中可查询的指定表或视图的列信息。
示例
下面的示例返回指定表的列信息。
EXEC sp_columns @table_name = 'customers'