Solved

SQL 2008 - domain user can`t login , local SQL user can

Posted on 2014-01-28
9
867 Views
Last Modified: 2014-02-07
Hello,
I created a new login on my sql server for a domain user.
local sql user works with no problem
I checked the user and pwd in AD - all OK
user is enabled & i checked the effective permissions and the user has connect & select enabled.

Windows server 2008 R2 + SQL Server 2008

thanks in advance
0
Comment
Question by:FiremanFpG
  • 5
  • 3
9 Comments
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 39815105
Verify that the AD user/group has access to the default db assigned in SQL Server for that user/group.  Login will fail if you can't get to the default db -- or the db specified in the connect string that overrides the default db.
0
 

Author Comment

by:FiremanFpG
ID: 39815165
I tried adding the account to the default database but same problem
I also changed the default database to the database that I need access to and verify the user I created has datareader rights - same error
I can login using management studio with the user but when i try to connect from excel I get an error - login failed for user
I tried with domain\user syntax and just the user - but same error on both
0
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 39815372
Oh, from Excel.  Can you connect from SS Management Studio as that AD user?
0
 
LVL 11

Expert Comment

by:John_Vidmar
ID: 39815724
My interpretation, you've created a SQL Server instance on your workstation and you want someone on your domain to interact with that instance via Active-Directory.  Without seeing the error, and assuming you've created the login correctly in your instance; I suspect a firewall is preventing access to the port your instance is listening for requests.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:FiremanFpG
ID: 39815784
I can connect with the AD user with the management studio.
About the excel - if I use an SQL user I can connect with no problem
0
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 39816508
Probably the Excel connection is set to "native SQL login" and not to "trusted login".  You need to change the connection setting to specify "trusted"/"domain" login in Excel when using an AD login.
0
 

Author Comment

by:FiremanFpG
ID: 39827366
how do i change it in excel ?
0
 

Accepted Solution

by:
FiremanFpG earned 0 total points
ID: 39827601
I Found the problem, i needed to add the users to the local SQL group on the server (Local Server 2008 group)
now it`s working
0
 

Author Closing Comment

by:FiremanFpG
ID: 39841367
that was the solution that solved it
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

743 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

12 Experts available now in Live!

Get 1:1 Help Now