Solved

SQL - Grant group access to database fails

Posted on 2013-06-11
5
315 Views
Last Modified: 2013-08-06
Hoping someone can help me out here.

I've create a database in SQL 2005 and need to have users access it via Excel.
If I gran login access to a user account, excel quite happily connects, all is good.

I however want to grant access with an AD global group instead of per user.  When I do so, using the same server & database permissions, Excel gives me a login failed.

To be clear, I'm assigning my database as the default database in the General tab.
Server Roles - Public (default)
User Mapping - public, db_datareader

In the server event log I get a Failure Audit on the user (when I've assigned group access to the database), event ID 18456.

Can't figure this out. Still searching...
Thank you for your time.
0
Comment
Question by:Jay
5 Comments
 
LVL 4

Expert Comment

by:TalShyar
Comment Utility
Take a look at this article if you have not already done so:

http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx
0
 

Author Comment

by:Jay
Comment Utility
Thank you.   I went through it but didn't find anything that matched my issue.

So specifically, I'm getting "severity 14, state 16".
Everything Ive read so far point to the login not being set to an active database, yet like I said, the same setup on a user account works fine.
0
 
LVL 24

Expert Comment

by:DBAduck - Ben Miller
Comment Utility
So to be clear, you have created a global group in AD and added this user, that worked when used alone, to this group.

Then you went into SQL and added this Global Group to Login and set a default database to your database, then mapped this group to a database and assigned db_datareader.

Is that where you are now?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
Comment Utility
So you created a Windows Login in SQL Server as opposed to a SQL Server Login?  Did you map the user in the database to this Login?  What does your connection string in Excel look like?
0
 

Author Comment

by:Jay
Comment Utility
dbaduck - That sounds about right.

Under Security/Logins, I added the user account, assigned the database, and assigned permissions db_datareader.

Works fine.

Same procedure except using the global group doesn't work.  
I'm assuming i should be assinging the database under User Mapping?  Right ? Thats where i would normally select the database and then assign db_datareader.
Server Roles is set to Public
nothing else is changed.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

771 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

13 Experts available now in Live!

Get 1:1 Help Now