Hello BrianWren
I used hdcmd.Parameters.Add("@CASE_LNAME", SqlDbType.VarChar, 50).Value = lastName
where the hdcmd is SqlCommand and it worked.
I get a new error which reads " Login failed for user 'sa' "
This happens when i try filling a dataadapter.
Below is the code:
hdcmd.Parameters.Add("@CASE_LNAME", SqlDbType.VarChar, 50).Value = lastName
LookUpDataSet3.Clear()
LookUpSqlDataAdapter.Fill(LookUpDataSet3)
Please help
|