Home » , » How to speed up the execution of stored procedure atoz help

How to speed up the execution of stored procedure atoz help

Written By M.L on புதன், 11 ஜனவரி, 2012 | ஜனவரி 11, 2012

We are fetching a report in sql server 2005. This is done through stored procedure. This SP is having nested cursors. By any ways can we improve the performance of this SP. We have tried using While loop as well it is not working.

Can you suggest if some reporting tool need to be used or can we integrate it with some third party that speed up the stored procedure by processing the data parallel.

This report is having approx 500 rows and 226 columns. It is doing calculations also.

ANSWER 1:
 Use temporary tables instead of cursors!

ANSWER 2:
Try to use table variables .Go for for loop instead of while.
Hope it works :)


Note : Provide your comments by clicking below options! Thanks ! :)

0 comments:

கருத்துரையிடுக

Popular Posts

General Category