By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,034 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,034 IT Pros & Developers. It's quick & easy.

Show owner of database

P: n/a
Hello,

Does anyone know what procedure to run to show information such as the
owner of a specific database for MSSQL2000? I want to make a script to
loop through all the databases on a server and display owner and other
helpful information.

Best regards,
Andreas

Nov 29 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Andreas, I think the following query will work for what you want:

Use MASTER
SELECT name, SUSER_SNAME(sid)
FROM sysdatabases

HTH -- Mark D Powell --

Nov 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.