Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Stored Procedure: Select and then Update

Author  Topic 

andros30
Yak Posting Veteran

80 Posts

Posted - 2010-10-26 : 11:49:52
I would like to know if I can create a report that points to a stored procedure where after I have generated my results it will update the table with a flag in a column already preset so that the next time I run the report, it does not return the same records.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-26 : 11:56:52
As far as I know it is not possible that a REPORT is updating anything...


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

andros30
Yak Posting Veteran

80 Posts

Posted - 2010-10-26 : 12:01:25
quote:
Originally posted by webfred

As far as I know it is not possible that a REPORT is updating anything...


No, you're never too old to Yak'n'Roll if you're too young to die.



I'm not sure if I was clear in my question. What I have is a stored procedure that has a select statement followed by an update statement. How will SSRS take this or will it take it?
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-26 : 12:27:11
Be sure you have: set nocount on

And then give it a try...


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -