not possible to add a group to a database role?

For a Sharepoint 2010 database role, I would like to add an AD group as a role member. However, in SSMS I can olny select users (both SQL and AD) and database roles (when selecting object types). Am I missing something? Is there another way to add an AD group to a databaserole?
more ▼

asked Jan 26, 2012 at 05:10 AM in Default

Wilfred van Dijk gravatar image

Wilfred van Dijk
1.3k 20 25 31

Have you tried adding the group as a login, then adding to the role?
Jan 26, 2012 at 05:20 AM sp_lock
@Jonlee Lockwood: +1.
Jan 26, 2012 at 05:59 AM JohnM
@JohnM I guess you forgot to give +1. I guess I did that before you and it still reads 1 :(
Jan 26, 2012 at 06:41 AM Usman Butt
@Usman Butt: My apologies. I think that I failed to do that. Is there a way that I can go back and add points?
Jan 26, 2012 at 06:48 AM JohnM
Disregard. I think that I figured it out. Still a newbie around here. =) Sorry for any confusion.
Jan 26, 2012 at 06:57 AM JohnM
(comments are locked)
10|1200 characters needed characters left

1 answer: sort oldest

The users referenced is referring to the users of the database, not logins on the server. Add the domain group as a login on the sql server and then map the login to the database & corresponding role. Should work just fine!

more ▼

answered Jan 26, 2012 at 05:59 AM

JohnM gravatar image

6.9k 1 3 7

Yes, this is working!
Jan 26, 2012 at 06:35 AM Wilfred van Dijk
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Jan 26, 2012 at 05:10 AM

Seen: 1181 times

Last Updated: Jan 26, 2012 at 05:50 AM