I have a datadriven subscription that uses a stored procedure.
The code is below:
declare @ReturnValue int
exec @ReturnValue = s003pSRC.sp_Par_Rate_Compare_Report_Subscription_Condition
select @ReturnValue ReturnValue
I have run the sp in ssms and I know its returning a 0 int value, why is the report still being sent out?
what do you think the return value represents?
by default, unless you modified the procedure to return a an integer determined within the stored procedure(ie return @@rowcount), a procedure returns zero when there are no errors.
Where in your code are you validating whether a subscription should be sent or not?
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!