Hi i'm tring to return a "TOP 1" value from column "MID" from a table using a storedproc. This is what i have, this is also my first attempt as this, any suggstions on making this work, thanks:
Code:
....
SqlCommand Command = new SqlCommand("sp_loginInfo", connection);
Command.CommandType = CommandType.StoredProcedure;
Command.Parameters.Add("@user", SqlDbType.NVarChar).Value = strEmail;
Command.Parameters.Add("@pass", SqlDbType.NVarChar).Value = strPassword;
using (SqlDataReader rdr = Command.ExecuteReader())
{
if (rdr.HasRows)
??? what do i need to do to finish it off and clean up the objects? I working with login info, so if there is a method that is "more secure" please let me know. Thanks
}