Hi,
I have a report based on a stored procedure something like this:
CREATE PROCEDURE [dbo].[Teste]
@cod as varchar(3)
AS
Select * FROM Table WHERE field_cod = @cod
Go
Running this stored procedure, the result will be a set of records...
However, I will need to make an update to some of the records that result of this select, and just after that I will want to send the records(now changed) to the client(crystal).
So, I will need to declare a variable of cursor type... I think, that will hold me the records while I´m changing them.
The problem is that, how can I say to SQL Server that after I made the changes, the output of my stored procedure should be those records (with the changes in them)?
Thank you in advance.
Sérgio Oliveira
I have a report based on a stored procedure something like this:
CREATE PROCEDURE [dbo].[Teste]
@cod as varchar(3)
AS
Select * FROM Table WHERE field_cod = @cod
Go
Running this stored procedure, the result will be a set of records...
However, I will need to make an update to some of the records that result of this select, and just after that I will want to send the records(now changed) to the client(crystal).
So, I will need to declare a variable of cursor type... I think, that will hold me the records while I´m changing them.
The problem is that, how can I say to SQL Server that after I made the changes, the output of my stored procedure should be those records (with the changes in them)?
Thank you in advance.
Sérgio Oliveira