I have a stored procedure to query a db by a given zipcode range. works just fine and returns selected records as well as a return value and some output values to be posted on web (asp).
Now, within the stored procedure i want to check if @@rowcount < 10. if true, i need to increase zipcode range and re-query db (ea while @@rowcount <10).
as soon as procedure re-querys, i will get a returned recordset, but return value and output values are blank.
does anybody have an idea? can i do that at all?
Now, within the stored procedure i want to check if @@rowcount < 10. if true, i need to increase zipcode range and re-query db (ea while @@rowcount <10).
as soon as procedure re-querys, i will get a returned recordset, but return value and output values are blank.
does anybody have an idea? can i do that at all?