Subject | RE: [IBO] NT Service and TIB_Connection |
---|---|
Author | Martynas Kancleris |
Post date | 2002-10-15T12:30:17Z |
I don't undestand your answer. Can you explain ?
This is my situation:
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;
When I run my service, I get an exception: "Database unavailable".
Then I try put this code to simple (empty) application only with TButton. TIB_connection works correctly in this application.
What I do wrong ?
Martynas Kancleris
UAB "Sonex sistemos"
Žemaitės g. 21, LT-2009 Vilnius
Mobile: +(370 686) 60477
E-mail: martynas.kancleris@...
-----Original Message-----
From: Thomas Steinmaurer [mailto:ts@...]
Sent: Tuesday, October 15, 2002 12:22 PM
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] NT Service and TIB_Connection
It's pretty simple. ALWAYS use remote connections inside a
service, even if it a local database.
Regards,
Thomas Steinmaurer
IB LogManager 2.1 - The Logging/Auditing Tool for InterBase and Firebird
http://www.iblogmanager.com
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
This is my situation:
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;
When I run my service, I get an exception: "Database unavailable".
Then I try put this code to simple (empty) application only with TButton. TIB_connection works correctly in this application.
What I do wrong ?
Martynas Kancleris
UAB "Sonex sistemos"
Žemaitės g. 21, LT-2009 Vilnius
Mobile: +(370 686) 60477
E-mail: martynas.kancleris@...
-----Original Message-----
From: Thomas Steinmaurer [mailto:ts@...]
Sent: Tuesday, October 15, 2002 12:22 PM
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] NT Service and TIB_Connection
It's pretty simple. ALWAYS use remote connections inside a
service, even if it a local database.
Regards,
Thomas Steinmaurer
IB LogManager 2.1 - The Logging/Auditing Tool for InterBase and Firebird
http://www.iblogmanager.com
> -----Original Message-----___________________________________________________________________________
> From: Martynas Kancleris [mailto:mKancler@...]
> Sent: Tuesday, October 15, 2002 2:17 PM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] NT Service and TIB_Connection
>
>
> Does anyboy knows anything about using TIB_Connection in win2000
> services.
>
> I always get error: "Database unaviable".
>
> Martynas Kancleris
> UAB "Sonex sistemos"
>
>
>
> ®emaitìs g. 21, LT-2009 Vilnius
> Mobile: +(370 686) 60477
> E-mail: martynas.kancleris@...
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/