Given that the stored procedure on SQL Server 2005, which moves along the cursor, should be run once per hour, and it takes about 5 minutes to complete, but it takes a large piece of processor time:
edit: I would delete the cursor if I could, unfortunately, I need to do a bunch of processing and run other stored procs / queries based on the string.
Is it possible to use WAITFOR DELAY '0: 0: 0.1' before each selection to act as a SQL version of .Net Thread.Sleep? So that other processes run faster due to the execution time of this procedure.
Or is there another solution that I do not see?
thanks
source
share