Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS returning different results than the stored procedure

I have a stored procedure that I can call from Management Studio and it returns 56 rows consistently. However, when I execute the query under from inside of ssrs 2008, I get back 61 rows. The stored procedure uses cursors and has some print statement inside of it.

Thanks,

like image 266
mikemurf22 Avatar asked Jun 11 '26 13:06

mikemurf22


1 Answers

I had a similar problem when I had an a stored procedure return warnings messages. It caused problems returning inconsistent results just in my SSRS dataset/report. I set ansi-warnings to off and my problem went away. You may want to comment out your print statements and try that.

Thanks, Steve

like image 97
Steve Goedker Avatar answered Jun 14 '26 01:06

Steve Goedker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!