Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > sqlserver server > february 2006 >

sqlserver server : Why does sa suddenly not work?


Ben Nevarez
2/28/2006 11:57:27 AM

I would check that the password in the connection string is correct.

But more important, I would not use the sa account from an application.

Ben Nevarez, MCDBA, OCP
Database Administrator


[quoted text, click to view]
UJ
2/28/2006 2:40:53 PM
I have a web site on a clustered server. One server is hosting the website.
Occasionally we get the following error message:

Login failed for user 'sa'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user
'sa'.

Source Error:


An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.


Stack Trace:


[SqlException: Login failed for user 'sa'.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString
options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
Marlin.Utility.Login(String aUserName, String aPassword, Page Page) in
c:\inetpub\wwwroot\marlin\utility.cs:419
Marlin.login.btnSubmit_Click(Object Source, EventArgs e) in
c:\inetpub\wwwroot\marlin\login.aspx.cs:80
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300



Why does SA suddenly stop working? The only way to make it work is to
restart IIS.

UJ
2/28/2006 3:05:12 PM
This works fine and then suddenly stops working. No one has changed the
password or the file.

The only way to get it to work is to restart IIS and SQL.

J.

[quoted text, click to view]

UJ
2/28/2006 5:43:36 PM
We were having other server problems so it wasn't really SQL at all.

[quoted text, click to view]

AddThis Social Bookmark Button