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.
Author |
Topic |
ranvir_2k
Posting Yak Master
180 Posts |
Posted - 2010-07-12 : 07:26:09
|
I've got over a 1000 databases on a server (not ideal I know) and I need to find the owner of each database.Does anyone have any idea on how to do this? Which tables should I query? |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-07-12 : 07:40:20
|
select name,suser_sname(owner_sid) as owner from sys.databases No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
|
|
|