Quote:
|
quote:Inside my stored procedur i used cursors and some t-sql functions.
|
Quote:
|
so i want to know are there any method to do fast all calculations inside sp's .
|
You've likely identified most of your problems with speed right there... Cursors and functions... Cursors are almost always bad and if the same person who wrote the cursors also wrote the functions... well...
Get rid of the cursors... replace them with correct set based code. Forget about processing rows... process columns as sets.
--Jeff Moden