Hi,
I have a SP in SQL Server. The SP has a cursor that loops through records as it does a copy function. I would like to be able to return a value back to visual basic so I know how many records have been copied.
How do I return data to VB in a stored procedure while the SP is running? I am looking for the code required on the VB side and SQL side to communicate this data. Also any ideas on counting the records copied as it loops???
Thank in advance for any ideas or samples.
Regards,
Mike
I have a SP in SQL Server. The SP has a cursor that loops through records as it does a copy function. I would like to be able to return a value back to visual basic so I know how many records have been copied.
How do I return data to VB in a stored procedure while the SP is running? I am looking for the code required on the VB side and SQL side to communicate this data. Also any ideas on counting the records copied as it loops???
Thank in advance for any ideas or samples.
Regards,
Mike