DataBase access in NT Service

  • Thread starter Thread starter Sanjeev
  • Start date Start date
S

Sanjeev

Hello,

I wrote a regular WinNT application and it did exactly what I wanted
it to do, but when I moved all the procedures over and created the
application to
be a service application I noticed that once execution hit the line of
code
that opened up my dataset, it went right into my exception block of
code.
Does anyone know why just opening a table in a NT Service Application
is
causing an error. I'm using an ODBC connected to a small Access db
for testing

TIA
Sanjeev Kumar.
 
You need to ask the in a MS Access News Group such as: microsoft.public.access

Dave



| Hello,
|
| I wrote a regular WinNT application and it did exactly what I wanted
| it to do, but when I moved all the procedures over and created the
| application to
| be a service application I noticed that once execution hit the line of
| code
| that opened up my dataset, it went right into my exception block of
| code.
| Does anyone know why just opening a table in a NT Service Application
| is
| causing an error. I'm using an ODBC connected to a small Access db
| for testing
|
| TIA
| Sanjeev Kumar.
 
Sanjeev said:
Hello,

I wrote a regular WinNT application and it did exactly what I wanted
it to do, but when I moved all the procedures over and created the
application to
be a service application I noticed that once execution hit the line of
code
that opened up my dataset, it went right into my exception block of
code.
Does anyone know why just opening a table in a NT Service Application
is
causing an error. I'm using an ODBC connected to a small Access db
for testing

TIA
Sanjeev Kumar.

Perhaps the application is launching while another service it relies on is
not yet started? It should be fairly easy to configure a dependency for your
service by specifying the dependency in the registry.

How to Delay Loading of Specific Services
http://support.microsoft.com:80/support/kb/articles/q193/8/88.asp
 
Back
Top