Solved

Discover all SQL Admins on SQL servers

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 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