• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 53
  • Last Modified:

MS SQL query to check who change SA roles for account

Hi

I am looking for SQL query to check who change my SA roles.
Or is there anyway to find out who removed my SA roles on SQL server?

Please help, M
0
michalek19
Asked:
michalek19
  • 2
1 Solution
 
Máté FarkasDatabase Developer and AdministratorCommented:
Sorry, but SA is not a role but a login in SQL Server.
SA is a fixed system administrator login which cannot be removed or deleted only disabled.
SA must have a sysadmin server role which cannot be revoked or denied.
What is your exact problem or what kind of error message do you get?
1
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
SA is a login name as stated above by Máté.
Maybe you wanted to say sysadmin role instead?
0
 
michalek19Author Commented:
Some one removed sysadmin role from my account. I would like to know if there is any to find out who was that.

Is there any query that I can run against that SQL server to find that information ?
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
No. It's too late now.
For future verifications, you can create a server trigger level to register all permissions changes. But this will only be valid for the future changes as changes made in the past can't be retrieved anymore.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now