Solved

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

Posted on 2014-01-28
9
876 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: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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Syntax 5 33
Query Syntax 17 31
New to SSRS, extremely slow running report. 8 19
While in ##Table - Help 4 10
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

815 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