Board index » delphi » Unusable result sets

Unusable result sets

When using SQL server commands such as @@Version  or RESTORE FILELIST
ONLY.... that return a result set from Delphi 5 database components (not
ADO), the result sets (when interrogated) have a positive row count but the
fields appear to hold nothing when accessed with FieldByName.AsString etc.
If I attempt to access them via the fields[n] property I can access and
display some fields but the fieldcount is substantially less then the
results set that is produced by the same command in Query Analyser.

How can I access the values of these seemingly non-existent yet vital
fields?

Thanks
TimmyG

 

Re:Unusable result sets


Hi,

I believe your problem is that the BDE doens't support the nverchar type
used for these procs. I've had similar problems with some of thre system
tables, and have had to structure queries that cast the fields as regular
varchars.

Mike Walsh

Quote
"TG" <t...@pracctice.com> wrote in message news:3bbb1586$1_1@dnews...
> When using SQL server commands such as @@Version  or RESTORE FILELIST
> ONLY.... that return a result set from Delphi 5 database components (not
> ADO), the result sets (when interrogated) have a positive row count but
the
> fields appear to hold nothing when accessed with FieldByName.AsString etc.
> If I attempt to access them via the fields[n] property I can access and
> display some fields but the fieldcount is substantially less then the
> results set that is produced by the same command in Query Analyser.

> How can I access the values of these seemingly non-existent yet vital
> fields?

> Thanks
> TimmyG

Other Threads