question

Brad avatar image
Brad asked

Adding user to any server role in SQL Server 2008 does not work

I am trying to add an existing domain user to the sysadmin server role, or any other server role. Whether I do this by executing sp_addsrvrolemember or through the GUI (yes, I'm connected as a sysadmin), it does not work. There is no error returned. The system acts as though it accepted the command. However, a quick check of the server role shows that the user was not added.

Any ideas?

sql-server-2008securityroles
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Steve Jones - Editor avatar image
Steve Jones - Editor answered

Can you remove a user from the roles? Also, can you edit the question to show the code you're using?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Steinar avatar image
Steinar answered

Can you try to run profiler when you run the command, and post the results? Add all security related events to the trace

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.