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