SQL Server Stored Procedure that return processed records number

Posted by Ras on Stack Overflow See other posts from Stack Overflow or by Ras
Published on 2012-10-21T09:40:43Z Indexed on 2012/10/21 11:00 UTC
Read the original article Hit count: 160

Filed under:
|
|
|
|

I have a winform application that fires a Stored Procedure which elaborates several records (around 500k). In order to inform the user about how many record have been processed, I would need a SP which returns a value every n records. For example, every 1000 row processed (most are INSERT).

Otherwise I would be able only to inform when ALL record are processed. Any hints how to solve this?

I thought it could be useful to use a trigger or some scheduled task, but I cannot figure out how to implement it.

© Stack Overflow or respective owner

Related posts about sql

Related posts about stored-procedures