469,625 Members | 1,591 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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 3751
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
intensive.

--
- 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
OF.
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
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
By using this site, you agree to our Privacy Policy and Terms of Use.