Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Connection failed
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

498 Posts

Posted - 11/02/2012 :  16:47:37  Show Profile  Reply with Quote

When user tried to connect to sql server, gets following error:

SQLState '28000'
SQL Server Error: 18456
Micorsoft SQL Server Native Client 10.0 SQL Server login faile for user abc\xyz.
Connection failed:
SQLState '42000'
SQL Server Error: 4064
Micorosft SQL server Native Client 10.0 SQL Server cannot open user default database. Login failed.

How to resolve this issue, please help.


Almighty SQL Goddess

38200 Posts

Posted - 11/02/2012 :  17:10:19  Show Profile  Visit tkizer's Homepage  Reply with Quote
Try changing the default database to master.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page

Constraint Violating Yak Guru

498 Posts

Posted - 11/02/2012 :  18:07:55  Show Profile  Reply with Quote
On SQL Server side, I changed default database for that group as master. But still error. Actually user is testing in ODBC Interface. User is member of AD group and that group have permissions on database.
Go to Top of Page

Bustaz Kool
Flowing Fount of Yak Knowledge

1834 Posts

Posted - 11/02/2012 :  18:24:19  Show Profile  Reply with Quote
Have you tried changing the database explicitly in the connection string?

We are far more concerned about the desecration of the flag than we are about the desecration of our land. -Wendell Berry
Go to Top of Page

The Chadinator

1974 Posts

Posted - 11/02/2012 :  18:47:41  Show Profile  Visit chadmat's Homepage  Reply with Quote
Are permissions specifically denied for that user or any group that user belongs to?

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000