How do you return a datareader from a stored procedure, but also return
an output parameter?
Here is my code, which is just returning a data reader at the moment :
_conn.Open();
SqlCommand _comm = new SqlCommand();
_comm.Connection = _conn;
_comm.CommandType = CommandType.StoredProcedure;
_comm.CommandText = "usp_CE_User_Authenticate";
_comm.Parameters.AddWithValue("@UserName",
txtUserName.Text.Trim());
_comm.Parameters.AddWithValue("@Password",
txtPassword.Text.Trim());
SqlDataReader dr = _comm.ExecuteReader();
User u;
if (dr.HasRows)
{
while (dr.Read())
*** Sent via Developersdex http://www.developersdex.com ***