Select * From tblText Where (TxtLng=0) And TxtStrID IN (0, 0) And TxtID=1008 Order By TxtStrID Desc

 


Cannot open database requested in login 'NPStore'. Login fails. Login failed for user 'sa'.

Server Error in '/' Application.

Cannot open database requested in login 'NPStore'. Login fails. 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: Cannot open database requested in login 'NPStore'. Login fails. Login failed for user 'sa'.

Source Error:


Line 43: 			Title = TransText("SearchResults");
Line 44: 		}else{	
Line 45: 			if(PID != 0) Title = CInfo.LoadText(CInfo.StoreID, (int)PID, out TxtText, out TxtFlags);
Line 46: 			if(PID >= TxtPageID.TXTPD_MinCustID){
Line 47: 				Title = TransText("HomePage") + " > " + GetFullPath((int)PID);

Source File: C:\Inetpub\wwwroot\NPStore\default.aspx    Line: 45

Stack Trace:


[SqlException: Cannot open database requested in login 'NPStore'. Login fails.
Login failed for user 'sa'.]
   System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +552
   System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
   System.Data.SqlClient.SqlConnection.Open() +384
   DBPage.ExecReader(String ls_sql) in c:\inetpub\wwwroot\npstore\dbpage.cs:147
   SessionInfo.LoadText(Int32 strID, Int32 txtID, String& strText, eTxtFlags& rFlags) in c:\inetpub\wwwroot\npstore\sessioninfo.cs:365
   ASP.Default_aspx.OnLoad(EventArgs e) in C:\Inetpub\wwwroot\NPStore\default.aspx:45
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750


Version Information: Microsoft .NET Framework Version:1.1.4322.2502; ASP.NET Version:1.1.4322.2494