K
Kiki
Hi,
just a small question. I've just looked at a friends code and he's done this:
int rowsAffected = sql.ExecuteNonQuery("stored_procedure", cmdParams);
if(rowsAffected < 1)
{
return false;
}
else
{.......
}
of course the code broke as soon as i put SET NOCOUNT ON in the sp..
is there a better way to check if any rows have been affected?
Thank you
Kiki
just a small question. I've just looked at a friends code and he's done this:
int rowsAffected = sql.ExecuteNonQuery("stored_procedure", cmdParams);
if(rowsAffected < 1)
{
return false;
}
else
{.......
}
of course the code broke as soon as i put SET NOCOUNT ON in the sp..
is there a better way to check if any rows have been affected?
Thank you
Kiki