September 5, 2011 at 5:59 am
Hi All,
Please let me know how we can track, for which database does user is connectiong :
--------------------------------------------------------------------------------------
2011-09-04 19:01:01.790 Logon Error: 18456, Severity: 14, State: 38.
2011-09-04 19:01:01.790 Logon Login failed for user 'CORP\shilpa'. Reason: Failed to open the explicitly specified database. [CLIENT: 10.253.11.114]
2011-09-04 19:01:31.790 Logon Error: 18456, Severity: 14, State: 38.
2011-09-04 19:01:31.790 Logon Login failed for user 'CORP\shilpa'. Reason: Failed to open the explicitly specified database. [CLIENT: 10.253.11.114]
2011-09-04 20:00:02.040 Logon Error: 18456, Severity: 14, State: 38.
--------------------------------------------------------------------------------------
September 5, 2011 at 6:23 am
the default database assigned to the login CORP\shilpa was dropped; change it to master adn try to log in again.
Lowell
September 5, 2011 at 6:34 am
But Default database is assigned to MASTER db itself.
September 5, 2011 at 6:44 am
In that case, it'll be the database name specified in the connection string passed by the application. You have the IP address of the computer the connection was made from; go to that and find out how the application is configured. If you can't do that, you may be able to run a Profiler trace to find out what database is being specified, although I've never tried getting that information myself, so I don't know whether it'll work.
John
September 5, 2011 at 6:56 am
Please let me know how i can get the previous info if i enable my profiler now?
September 5, 2011 at 6:59 am
As I said, I've never tried it myself, so it's up to you to experiment. Start with the events in the Security Audit section.
John
September 5, 2011 at 7:47 am
im not able to solve by profiler, is there any other try to find out the above issue???
September 5, 2011 at 7:57 am
You need to do as John suggested.
The following link is a step by step tutorial.
http://www.techrepublic.com/article/step-by-step-an-introduction-to-sql-server-profiler/5054787
Based on the error message it appears that you are attempting to open a Database Client.
Does the user have permissions to that database?
Good luck.;-)
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
September 6, 2011 at 7:03 am
Error State 38 is pretty rare. This could be because of some internal error. If you look at this blog from MSDN, you will read that you might require help from CSS to solve any error state above 18.
I hope it is not too severe. Best of luck.
-Roy
September 6, 2011 at 11:26 pm
shilpa.shankar87 (9/5/2011)
im not able to solve by profiler, is there any other try to find out the above issue???
Please take a look at this blog. It may help you.
September 6, 2011 at 11:39 pm
What happens if you log on via SSMS?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply