1
|
SELECT Name FROM Master..SysDatabases ORDER BY Name |
1
2
3
4
5
|
SELECT Name FROM DatabaseName..SysObjects Where XType= ‘U‘ ORDER BY Name XType= ‘U‘ :表示所有用户表; XType= ‘S‘ :表示所有系统表; |
1
|
SELECT Name FROM SysColumns WHERE id=Object_Id( ‘TableName‘ ) |
原文:http://www.cnblogs.com/Impulse/p/4834441.html