1.检索所有数据库名称: tSELECT Name FROM Master..SysDatabases ORDER BY Name tMaster代表服务器名称2.浏览所有表名称: tSELECT Name FROM DatabaseName..SysObjects Where XType='U' ORDER BY Name tDatabaseName指特定数据库名tXType='U'表示用户表; tXType='S'表示系统表; 3.获取所有字段名称: tSELECT Name FROM SysColumns WHERE id=Object_Id('TableName') tTableName指数据表名