My application executes the stored proc and retrieves the records affected.
Are you sure that the same session is doing both?