-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: _SQL_Vinod_
Message 4 in Discussion

I dont recommend using Cursors on first place. Refer to article outlined at 
http://www.extremeexperts.com/sql/articles/BestPractices.aspx. But having said that I 
would like to point out that Cursors generally are resourse hungry. And please make it 
a point to deallocate the cursor hence clearing the memory held.

>> use FAST_FORWARD and READ_ONLY options so that the cursors will consume less memory.

Hmmm, this is not the case. Cursors consume memory. But the amount of operations on 
these types are very less. BTW, FAST_FORWARD type is a READ_ONLY and FORWARD_ONLY type 
of cursor. Hence use FAST_FORWARD alone if you need to use.

If you are wondering how can we avoid looping without cursors. Well, here is an code 
snippet you can use: http://www.extremeexperts.com/sql/articles/IterateTSQLResult.aspx.

HTH,
Vinod Kumar
www.ExtremeExperts.com

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to