Subject | Re: Connecting from a Windows service |
---|---|
Author | Matt Nielsen |
Post date | 2006-10-25T22:32:40Z |
I use services with IBO and firebird extensively and have no problems
other than you have to be careful with threading and connection
recovery.
If you use TCP/IP and a properly formed connection string
(ie 'LOCAHOST:C:\Database\DATABASE.FDB') you don't have to do
anything special and it will work perfectly. Make sure you set your
service to depend on Firebird by just adding the reference to the
dependencies collection in the TService
component. 'FirebirdServerDefaultInstance' is the name of the
service. Otherwise you will have problems when the machine re-boots.
other than you have to be careful with threading and connection
recovery.
If you use TCP/IP and a properly formed connection string
(ie 'LOCAHOST:C:\Database\DATABASE.FDB') you don't have to do
anything special and it will work perfectly. Make sure you set your
service to depend on Firebird by just adding the reference to the
dependencies collection in the TService
component. 'FirebirdServerDefaultInstance' is the name of the
service. Otherwise you will have problems when the machine re-boots.
--- In IBObjects@yahoogroups.com, "gerrwes" <gerrwes@...> wrote:
>
> Hi,
>
> Has anyone had any problems to connect from a Windows service to
> Firebird? I get an ISC ERROR CODE:335544375 'unavailable database'.
>
> When I connect with my other apps it works fine. Even if I run the
> service exe by itself it connects, only as a service does it fail!
>
> Please help!
>
> Thanks,
>
> Gerhard Wessels
>