Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 server which contains 100 db's

Author  Topic 

arunsqladmin
Yak Posting Veteran

74 Posts

Posted - 2007-12-18 : 02:45:05
i have a server which contains 100 db's , how to check how many users are there in all the databases together

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-18 : 03:11:45
Run this in QA

select 'select name from '+name+'..sysusers union all ' from master..sysdatabases

Copy the result back to QA and remove union all from last query

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

arunsqladmin
Yak Posting Veteran

74 Posts

Posted - 2007-12-18 : 04:26:21
thanks madhivanan
Go to Top of Page
   

- Advertisement -