sql server 2005中获取数据库个数 select count(*)from sys.databases a inner join sys.syslogins b on a.owner_sid = b.sidwhere b.[name] = 'PromisUser' 继续追寻。。。。。。