Subject Re: [ib-support] isc_dsql_exec_immed2()
Author Paul Reeves
C R Zamana wrote:
>
> Paul Beach wrote:
> > Lets be more accurate here...
>
> Ok, I understand.
>
> Do you have any idea about an workaround for this?
> I just want a simple value: number of columns of a table.
> Get such information by opening a cursor and fetching it
> and closing it is somewhat "overweight", I think.
>

If you are working at the API level it should be relatively simple. Do a
'select * from mytable' and then prepare it. Read XSQLDA.sqld to get the
number of columns in the result set.

Paul
--

Paul Reeves
http://www.ibphoenix.com
taking InterBase further