Solved

Discover all SQL Admins on SQL servers

Posted on 2013-02-05
2
227 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: btan
Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
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…
A simple description of email encryption using a secure portal service. This is one of the choices offered by The Email Laundry for email encryption. The other choices are pdf encryption which creates an encrypted pdf of your email and any attachmen…

920 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

15 Experts available now in Live!

Get 1:1 Help Now