471,854 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

Updatable Cursors

I am trying to write updatable cursors in a stored procedure? Can I get
any help to write updatable cursors?

Any help would be appreciated very much.

Thanks for your help in advance.

Rajah V.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
2 3818
Can you post some sample data along with table DDLs so that others can
better understand your requirements? Most likely you can use efficient
set-based logic & avoid cursors which are generally lousy, slow & resource

- Anith
( Please reply to newsgroups only )
Jul 20 '05 #2
Rajah Venkata Krishnan (ra**********@analytics-usa.com) writes:
I am trying to write updatable cursors in a stored procedure? Can I get
any help to write updatable cursors?

As Anith, I discourage you from writing cursors. Cursors have their
place, but it is a feature which you should use rarely. The performance
of cursor compare to the corresponding set-based operation is often
magntitudes slower.

If you have a problem which actually is best addressed by a cursor, don't
bother using WHERE CURRENT OF. Make the cursor INSENSITIVE, and update
the rows through key values. I have *never* had any need for WHERE CURRENT
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Alban Hertroys | last post: by
22 posts views Thread by T.S.Negi | last post: by
reply views Thread by Michelle | last post: by
6 posts views Thread by a | last post: by
7 posts views Thread by H. Williams | last post: by
1 post views Thread by Dima Kuchin | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.