![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there any possible way to get an SQL SP to report progress mid- stream so to speak ? I have a very lengthy SQL SP that performs many inserts, updates, merges, calls other Functions etc and I am wondering if there is any possible way to get it to report it's progress as if goes through the various tasks. I have tried dynamic result sets in the middle of the SP with something like "VALUES 'Progress 1'" but it does nothing at all. Any admin SP's, functions or anything that can report text back to the CLP when running the SP ? |
#3
| |||
| |||
|
|
"Fin"<tdavidge (AT) hotmail (DOT) com> wrote in message news:f9fa95c0-d3eb-4eb5-9632-72f8e048e174 (AT) d19g2000yql (DOT) googlegroups.com... Is there any possible way to get an SQL SP to report progress mid- stream so to speak ? I have a very lengthy SQL SP that performs many inserts, updates, merges, calls other Functions etc and I am wondering if there is any possible way to get it to report it's progress as if goes through the various tasks. I have tried dynamic result sets in the middle of the SP with something like "VALUES 'Progress 1'" but it does nothing at all. Any admin SP's, functions or anything that can report text back to the CLP when running the SP ? You can insert rows into another table which reports the status, and then query the table. ....using uncommitted read of course. |
![]() |
| Thread Tools | |
| Display Modes | |
| |