Solved

Discover all SQL Admins on SQL servers

Posted on 2013-02-05
2
226 Views
Last Modified: 2013-02-20
We are putting together a security audit and would like to be able to (1) detect all SQL Servers or instancess running and (2) be able to determine the SQL admins associated. We can use NMAP and determine the SQL instances and then have that list in a text file. But does anyone have any idea on how we could then pull SQL admins from those servers remotely without having to go to each server and run something manually. Looking to automate this as much as possible and searching for suggestions.
0
Comment
Question by:cmhwsu
2 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 38860336
Well, you could write an app, like vb.net that connects via connection string to one server after the other and runs a query on:

use master;
select * from dbo.sysusers

You'd have to know what you were looking for. It will also depend upon whether you are using standard security, or the Windows security or mixed.

In standard there is only sa for root
In Windows all users with admin access on that machine are SQL Server admins too.  In mixed this is also a concern. If you just mean dbo or a certain role, you can get that info from this table too.
0
 

Author Comment

by:cmhwsu
ID: 38910331
It appears this is basically what we will have to do. Thank you.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now