Board index » delphi » SQL Passthru with MS SQL 6.5

SQL Passthru with MS SQL 6.5

Hi there,

I have a database on MSSQL 6.5 with two different tables. In D4 C/S I try to
query these tables
with a database component and two queries connected to it. If I activate the
first, everything is fine but trying to activate the second results in an
error like "Link already in use" . The native driver is set to SQL
Passthru="Not shared". The queries are very simple like "select * from this
order by that". Using "Share Autocommit" works but is processed locally so
the whole data ist transferred to the client.
Do I have to take another database component for each query ???

THX for any suggestions

Oliver Sauer
Berlin

 

Re:SQL Passthru with MS SQL 6.5


Hi Oliver!

On Sun, 20 Feb 2000 23:26:35 +0100, "Oliver SAuer" <sa...@sauer.de>
wrote:

Quote
>I have a database on MSSQL 6.5 with two different tables. In D4 C/S I try to
>query these tables
>with a database component and two queries connected to it. If I activate the
>first, everything is fine but trying to activate the second results in an
>error like "Link already in use" . The native driver is set to SQL
>Passthru="Not shared". The queries are very simple like "select * from this
>order by that". Using "Share Autocommit" works but is processed locally so
>the whole data ist transferred to the client.
>Do I have to take another database component for each query ???

You can have only one open cursor per database connection, so if you
want that first TQuery is not fetched all when the second opens up
then you have to uze another TDatabase component.

tomi.

Re:SQL Passthru with MS SQL 6.5


Hi Tom,

thanks for the tip!
I didn't found it in any documentation.
It sounds like a bug, not a feature...

Oliver

Tomislav Kardas <nomail@sorry> schrieb in im Newsbeitrag:
38b3f623.14387...@forums.inprise.com...

Quote
> Hi Oliver!

> On Sun, 20 Feb 2000 23:26:35 +0100, "Oliver SAuer" <sa...@sauer.de>
> wrote:

> >I have a database on MSSQL 6.5 with two different tables. In D4 C/S I try
to
> >query these tables
> >with a database component and two queries connected to it. If I activate
the
> >first, everything is fine but trying to activate the second results in an
> >error like "Link already in use" . The native driver is set to SQL
> >Passthru="Not shared". The queries are very simple like "select * from
this
> >order by that". Using "Share Autocommit" works but is processed locally
so
> >the whole data ist transferred to the client.
> >Do I have to take another database component for each query ???

> You can have only one open cursor per database connection, so if you
> want that first TQuery is not fetched all when the second opens up
> then you have to uze another TDatabase component.

> tomi.

Other Threads