× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Tue, Oct 12, 2010 at 10:02 AM, David FOXWELL <David.FOXWELL@xxxxxxxxx> wrote:


But only because he opens and closes the cursor, right? A chain would not need this.

However, remember my motto, "If you're using a cursor you're
probably doing something wrong."  You might see the term RBAR
thrown about when it comes to cursors, especially in MS SQL
Server forums.

RBAR stands for Row-By-Agonizing-Row.

There are a few places where you have to use cursors, but
this isn't one of them!


Charles, I used a cursor a couple of times when learning embedded sql. But now I never see an advantage for using one. When <would> it be a the right place?

Anyplace there's no other way. :)

Good example, an RPG program that creates a spool file. You're going
to need a cursor. Another example, when you use embedded SQL to get
records for display in a subfile.

I'm not following your first question.

Charles

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.