Select * From tblProducts Where PrdID=19 And PrdRefStrID=18

 


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 30: 		}
Line 31: 
Line 32: 		iReader = ExecReader("Select * From tblProducts Where PrdID=" + PrdID + " And PrdRefStrID=" + PrdRefStrID);
Line 33: 		if(iReader.Read()) Title = iReader["PrdName"].ToString();
Line 34: 	}

Source File: C:\Inetpub\wwwroot\NPStore\Product.aspx    Line: 32

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
   ASP.Product_aspx.OnLoad(EventArgs e) in C:\Inetpub\wwwroot\NPStore\Product.aspx:32
   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