Re: Connections with Gupta hangs
- From: "Mikael Lenfors" <mikael@xxxxxxxxxx>
- Date: Thu, 21 Sep 2006 10:09:01 +0200
Thanks , I tried it but it didn't help! Any more ideas?
regards, Mikael
"Dennis Passmore" <dennisp@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ct6bg25t85dav141a3r6q3tihcefr5mk6q@xxxxxxxxxx
ADOStoreConnection.Open;
Instead of calling Open on the ADOConnection try adding this
to your code and see if it helps.
type
TcADOConnection = class(TADOConnection);
-- Code to setup my connection
ConnStr := 'Provider=SQLBASEOLEDB.1;';
ConnStr := ConnStr + 'Password="' + SQLPassword + '";';
ConnStr := ConnStr + 'Persist Security Info=True;';
ConnStr := ConnStr + 'User ID=' + SQLUserName + ';';
ConnStr := ConnStr + 'Data Source=' + SQLServerName +';';
ADOStoreConnection.ConnectionString := ConnStr;
ADOStoreConnection.CommandTimeout := 30;
ADOStoreConnection.ConnectionTimeout := 10;
ADOStoreConnection.CursorLocation := clUseClient;
ADOStoreConnection.KeepConnection := False;
ADOStoreConnection.LoginPrompt := False;
TcADOConnection(ADOStoreConnection).CheckActive;
CheckActive is implemented in AdoDB.pas but it is Protected so it
can only be called from a descendant class that is why
the TcADOConnection was declared. CheckActive it will setup a
WaitTillComplete loop and not timeout right away.
.
- References:
- Connections with Gupta hangs
- From: Mikael Lenfors
- Re: Connections with Gupta hangs
- From: Dennis Passmore
- Connections with Gupta hangs
- Prev by Date: Re: ADO exception with character combination inside string...
- Next by Date: Delphi 6 - ADO - MS SQL Server
- Previous by thread: Re: Connections with Gupta hangs
- Next by thread: ROW-00054: Cannot load the library
- Index(es):