thelordoftherings
Programmer
Hello,
I have writted a standars Stored Procedure of Select... From... Where....
I would like to test the row count of the select query, In case it is larger than a certain value don't return the ResultSet but an error. I tried to put this after the WHERE:
IF @@ROWCOUNT > 100
RETURN (99)
But I still receive the ResultSet.
So how can I prevent this?
Roy
I have writted a standars Stored Procedure of Select... From... Where....
I would like to test the row count of the select query, In case it is larger than a certain value don't return the ResultSet but an error. I tried to put this after the WHERE:
IF @@ROWCOUNT > 100
RETURN (99)
But I still receive the ResultSet.
So how can I prevent this?
Roy