Solved

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

Posted on 2014-01-28
9
895 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 69

Expert Comment

by:Scott Pletcher
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:Scott Pletcher
ID: 39815372
Oh, from Excel.  Can you connect from SS Management Studio as that AD user?
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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
 

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:Scott Pletcher
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

636 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