标签:
--查看表的架构
SELECT c.column_id,c.name,t.name FROM sys.columns AS c
JOIN sys.types t
ON c.system_type_id=t.system_type_id
WHERE c.object_id=object_id(‘SO‘)
ORDER BY c.column_id
--查看表的索引
SELECT name,type_desc FROM sys.indexes WHERE object_id=object_id(‘SO‘)
标签:
原文地址:http://www.cnblogs.com/shitian/p/4272848.html