Stored procedure that returns an empty resultset as well as a resultset when it shouldnt

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I have the following stored procedure that is supposed to return a resultset
based on Title if it can't find the same thing based on ItemID. It will then
update the row if it is found and return the updated values with output. If
either fail, it returns the existing row based on ItemID and ModuleID. The
problem is when the catch block is entered and a resultset generated, I have
an empty resultset at the beginning of my IDataReader (VB.NET). Is there any
way to get rid of the null/empty resultset? I have a sence that it is coming
from the updates output clause.



.



Relevant Pages