Subject | Re: [IBO] SQL Error code = -804 |
---|---|
Author | Helen Borrie |
Post date | 2001-08-16T07:14:39Z |
At 11:26 PM 15-08-01 -0700, you wrote:
If you want to SELECT rows, use TIB_Cursor or TIB_Query.
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Actually, 2 questions.Test the .IsEmpty property.
>
>First, a quickie: What is the "proper" way to test for "is the result set
>empty?"
> RowsSelected, RowsAffected, EOF and BOF, try..except, or ??
>Second,You cannot get a dataset back from a TIB_DSQL - it is for executing statements. Here you are calling Execute on a SELECT statement. You will also get this error from calling Open instead of Execute or ExecSQL on a statement that performs a DSQL operation.
>
>This seems to be a simple, direct TIB_DSQL, but on the 2nd execution of it
>(and thereafter), I receive:
>
>SQL Error code = -804
>SQLDA missing or incorrect version, or incorrect number/type of variables.
If you want to SELECT rows, use TIB_Cursor or TIB_Query.
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________