Skip to Content.
Sympa Menu

freetds - RE: [freetds] dbnextrow() question

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] dbnextrow() question
  • Date: Tue, 8 Mar 2005 11:00:52 -0000

well yes...

your next call to dblibrary *might* fail with a "results pending" type
error though, if you tray and do another operation on the same channel

Bill

-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of craigs
Sent: 08 March 2005 10:58
To: FreeTDS Development Group
Subject: Re: [freetds] dbnextrow() question


found an easier way of doin it.

while (dbnextrow(dbconn) != NO_MORE_ROWS)
{
if ( find what i want )
{
do something here
now exit doing the following

return NO_MORE_ROWS; // this will let you exit
}
}


Thompson, Bill D (London) wrote:

>Shaun
>
>see dbcanquery() or dbcancel() . dbcanquery looks like exactly what you
>want.
>
>-----Original Message-----
>From: freetds-bounces AT lists.ibiblio.org
>[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of craigs
>Sent: 04 March 2005 12:19
>To: FreeTDS Development Group
>Subject: [freetds] dbnextrow() question
>
>
>Could someone tell me how to exit this loop? I dont want to run
through
>
>thousands of unnecessary records when i find the one i want.
>
>while (dbnextrow(dbconn) != NO_MORE_ROWS)
>{
> if ( find what i want )
> {
> do something here
> now i want to exit out off this loop
> }
>}
>
>Shaun
>_______________________________________________
>FreeTDS mailing list
>FreeTDS AT lists.ibiblio.org
>http://lists.ibiblio.org/mailman/listinfo/freetds
>--------------------------------------------------------
>
>If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain or redistribute it. Click here for important additional terms
relating to this e-mail. http://www.ml.com/email_terms/
>--------------------------------------------------------
>
>_______________________________________________
>FreeTDS mailing list
>FreeTDS AT lists.ibiblio.org
>http://lists.ibiblio.org/mailman/listinfo/freetds
>
>

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------





Archive powered by MHonArc 2.6.24.

Top of Page