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