select a.Name as 表名, b.Name as 列名, c.Name as 类型, b.max_length as 字节数, b.Precision as 整数位, b.Scale as 小数位 from Sys.tables a inner join Sys.columns b on a.object_id=b.object_id inner join sys.Types c on c.User_Type_ID=b.User_Type_ID
本文出自 “IT” 博客,请务必保留此出处http://8577754.blog.51cto.com/8567754/1553205