select [name] from [sysdatabases] order by [name] -- 查询数据库名
SELECT Name FROM 数据库名称..SysObjects Where XType='U' ORDER BY Name-- 查询表名
select [name] from [sysdatabases] order by [name] -- 查询数据库名
SELECT Name FROM 数据库名称..SysObjects Where XType='U' ORDER BY Name-- 查询表名