SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

Peter99
Constraint Violating Yak Guru

494 Posts

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

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.

Thanks

tkizer
Almighty SQL Goddess

USA
37291 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
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Peter99
Constraint Violating Yak Guru

494 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

USA
1770 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

chadmat
The Chadinator

USA
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?

-Chad
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000