G
Guest
Just wondering if anyone knows what might be causing this login failure.
I used the data-adapter wizard and selected use an existing connection(also tried new connection that test ok).
I selected use existing stored procedure, for the select operation selected the stored procedure I want to use.
It created the adapter and also an SQLconnection on the page.
So for some reason am getting this login failure. I am able to connect to the dbase in the solution explorer and when I look at the connection string in the data adapter I noticed there is no password value. I have
workstation id="xxxxxx";packet size=4096;user id=xxxxxx;data source="xxxx";persist security info=False;initial catalog=Vehicle_Mileage
here is the error message.
Login failed for user 'MileageWeb'.
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 'MileageWeb'.
Source Error:= line 72
Line 70: Me.SqlDataAdapter1.SelectCommand().Parameters("@EndDate").Value() = "1/6/2003"
Line 71: Me.SqlDataAdapter1.SelectCommand().Parameters("@StartDate").Value() = "1/1/2003"
Line 72: SqlDataAdapter1.Fill(ds_vhist, "VehicleReservation")
Thanks Paul.
I used the data-adapter wizard and selected use an existing connection(also tried new connection that test ok).
I selected use existing stored procedure, for the select operation selected the stored procedure I want to use.
It created the adapter and also an SQLconnection on the page.
So for some reason am getting this login failure. I am able to connect to the dbase in the solution explorer and when I look at the connection string in the data adapter I noticed there is no password value. I have
workstation id="xxxxxx";packet size=4096;user id=xxxxxx;data source="xxxx";persist security info=False;initial catalog=Vehicle_Mileage
here is the error message.
Login failed for user 'MileageWeb'.
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 'MileageWeb'.
Source Error:= line 72
Line 70: Me.SqlDataAdapter1.SelectCommand().Parameters("@EndDate").Value() = "1/6/2003"
Line 71: Me.SqlDataAdapter1.SelectCommand().Parameters("@StartDate").Value() = "1/1/2003"
Line 72: SqlDataAdapter1.Fill(ds_vhist, "VehicleReservation")
Thanks Paul.