|
-
May 26th, 2009, 09:33 AM
#1
Thread Starter
Junior Member
Intermittent "login failed for user 'sa'"
I have a number of desktop applications all built using .net framework 3 which seem to go through phases of intermittently throwing an error when connecting to our database. The error is a simple "login failed for user 'sa'" as if the user name is incorrect but as it works the majority of the time it obviously is not.
I am using the sqlClient.sqlClientConnection with native drivers with all my applications and connecting to a sql2005 database which is mirrored to a backup.
Has anyone heard of or experiencing anything like this before? this is proving a tough one to diagnose!
-
May 26th, 2009, 09:47 AM
#2
Re: Intermittent "login failed for user 'sa'"
If the option "Audit Login Failures" is on (the default) then the SQL Server log files might tell you the reason why.
-
May 26th, 2009, 10:36 AM
#3
Thread Starter
Junior Member
Re: Intermittent "login failed for user 'sa'"
There is no mention of the errors in the SQLserver logs or the windows logs, where can I check that "Audit login failures" is on?
-
May 28th, 2009, 04:49 AM
#4
Thread Starter
Junior Member
Re: Intermittent "login failed for user 'sa'"
where can I check that "Audit login failures" is on?
has anyone experienced this before?
-
May 28th, 2009, 09:17 AM
#5
Re: Intermittent "login failed for user 'sa'"
This is a Server property. In management studio right click the server name and click properties. You will find the Login Auditing options on the security tab. This is what is written to the SQL Server Log file when an invalid password is used.
2009-05-28 07:20:30.33 Logon Error: 18456, Severity: 14, State: 8.
2009-05-28 07:20:30.33 Logon Login failed for user 'softuser'. [CLIENT: <local machine>]
Last edited by brucevde; May 28th, 2009 at 09:22 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|