dbTalk Databases Forums  

How to run my Curser more faster?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to run my Curser more faster? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
raj
 
Posts: n/a

Default How to run my Curser more faster? - 11-28-2004 , 06:13 PM






I have a stored procedure written for number of updates, inserts to the
database. This stored procedure takes too long to run. I have created few
indexes around few tables, but the response time is not that defferent.
THere is a Curser "CURSOR FAST_FORWARD FOR" in the stored procedure, and
another stored procedure is called within this Curser. I found that lot of
time been taken to run this Curser. So I want to run/make it faster the
curser. So how should I improve the Curser to run more faster
I would greatly appreciate anyone's idea or suggesions.

thanks

raj

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to run my Curser more faster? - 11-29-2004 , 12:50 AM






Don't use a Cursor for a start. Cursors operate Row * Row. In 99% of all
cases there is a set based way of doing the same thing and in 99% of the
cases it outperforms the cursor.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"raj" <raj (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a stored procedure written for number of updates, inserts to the
database. This stored procedure takes too long to run. I have created few
indexes around few tables, but the response time is not that defferent.
THere is a Curser "CURSOR FAST_FORWARD FOR" in the stored procedure, and
another stored procedure is called within this Curser. I found that lot of
time been taken to run this Curser. So I want to run/make it faster the
curser. So how should I improve the Curser to run more faster
I would greatly appreciate anyone's idea or suggesions.

thanks

raj



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.