Subject | RE: [IBO] NT Service and TIB_Connection |
---|---|
Author | Thomas Steinmaurer |
Post date | 2002-10-15T11:41:14Z |
> I don't undestand your answer. Can you explain ?Sure.
> This is my situation:Without specifying a server and using cpLocal as protocol, your are
> I am writing NT service (win2000). I use this code in my service:
>
> Var
> Ib:TIB_Connection;
> Begin
> Ib:=TIB_Connection.Create(nil);
> Ib.Path:='C:\aaa.gdb';
> Ib.Username:='SYSDBA';
> Ib.Password:='masterkey';
> Ib.Connected:=True;
> End;
connecting local to your database, which is currently the case.
Set the TIB_Connection.Server property to 'localhost' (without quotes)
and use cpTCP_IP as connection protocol (TIB_Connection.Protocol property)
HTH,
Thomas Steinmaurer
IB LogManager 2.1 - The Logging/Auditing Tool for InterBase and Firebird
http://www.iblogmanager.com