Board index » delphi » invalid transaction handle (expecting explicit transaction start)
wenkiat
![]() Delphi Developer |
Fri, 14 Nov 2003 10:30:35 GMT
|
wenkiat
![]() Delphi Developer |
Fri, 14 Nov 2003 10:30:35 GMT
invalid transaction handle (expecting explicit transaction start)
procedure TForm1.ReconnectClick(Sender: TObject);
begin IBDatabase1.Connected := True; IBTransaction1.Active := True; IBDataSet1.Active := True; end; procedure TForm1.DisconnectClick(Sender: TObject); when the InterBase server is running, i can disconnect and reconnect without but when InterBase server is not running, when tried to disconnect and how do i disconnect and reconnect without getting that error? |
Team
![]() Delphi Developer |
Fri, 14 Nov 2003 12:58:09 GMT
Re:invalid transaction handle (expecting explicit transaction start)ForceClose should only be used in the direst of straights and should not be considered a resumable state. In some instances the IBTransaction can have its Handle in a non null state leading to your problem if you try to re use it. IBX itself only uses ForceClose when destroying IBDatabase objects or it is definite that the connection is gone. Quotewenkiat wrote: you want to continue once you have the server up and running again you should be able to do a normal close and open again. -- |
wenkia
![]() Delphi Developer |
Fri, 14 Nov 2003 13:29:48 GMT
Re:invalid transaction handle (expecting explicit transaction start)when i tried to issue, IBDatabase1.Connected := False when the interbase server is shutdown, i will get "connection lost to database" exception when i start the interbase server, and tried to issue, IBDatabase1.Connected := True, i will still get "connection lost to database" exception i will only able to set IBDatabase1.Connected := True so, is there any way of writting a diconnect and reconnect function? "Jeff Overcash (TeamB)" <overc...@onramp.net> wrote in message Quote> ForceClose should only be used in the direst of straights and should not |
wenkia
![]() Delphi Developer |
Sat, 15 Nov 2003 09:30:56 GMT
Re:invalid transaction handle (expecting explicit transaction start)when i tried to issue, IBDatabase1.Connected := False when the interbase server is shutdown, i will get "connection lost to database" exception when i start the interbase server, and tried to issue, IBDatabase1.Connected := True, i will still get "connection lost to database" exception i will only able to set IBDatabase1.Connected := True so, is there any way of writting a diconnect and reconnect function? "Jeff Overcash (TeamB)" <overc...@onramp.net> wrote in message Quote> ForceClose should only be used in the direst of straights and should not |
1. invalid transaction handle (expecting explicit transaction start)
2. Error 335544332 Invalid transaction handle (expecting explicit transaction start)
3. invalid transaction handle (expecting explicit transaction start)
4. invalid transaction handle (expecting explicit transaction start)
5. invalid transaction handle (expecting explicit transaction start)
6. Expecting explicit transaction start
7. SQL Server and Delphi: START TRANSACTION vs maximum of transactions