Hi everyone-
I have following code:
SqlConnection conn =
SqlCommand myCommand =
myCommand.CommandType = System.Data.CommandType.Text;
myCommand.Connection = conn;
sSQL =
{
SqlParameter parameterlmn =
parameterlmn .Value =
myCommand.Parameters.Add(parameterlmn);
sSQL +=
}
myCommand.CommandText = sSQL;
SqlDataAdapter myAdapter =
conn.Open();
myAdapter.Fill(ds,
conn.Close();
myAdapter.Dispose();
The problem is when i return that dataset ds, its giving me following error :
System.Data.SqlClient.SqlException: Must declare the variable '@lmn'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
Any ideas???