M
matteo
Hello all,
I've written a windows service , set a dependency on Sql Server
service and set the service to Automatic start.
The problem is that my service is still failing to start because it's
true tha it now waits for Sql Server to have started, but the database
it tries to connect to is still not ready.
It seems like Sql Server is announcing it's ready for connection even
if it hasn't still actually started up the databases it handles.
Here's a dump from the sql server log in chronological order:
1. SQL Server is now ready for client connections.
2. Starting up database 'tempdb'.
3. Login failed for user 'DOMDIGI\Mazzotti'. Reason: Failed to open
the explicitly specified database. [CLIENT: <local machine>]
4. Starting up database 'msdb'.
5. Starting up database 'ByAdv' --> this is the database the service
is trying to connect to.
As you can see, the service is attempting a connection well before the
database is ready.
How can I set a dependency on this specific database and not just on
the Sql Server service ?
The OS is Windows Server 2003, so delay start isn't available.
Thank you in advance
I've written a windows service , set a dependency on Sql Server
service and set the service to Automatic start.
The problem is that my service is still failing to start because it's
true tha it now waits for Sql Server to have started, but the database
it tries to connect to is still not ready.
It seems like Sql Server is announcing it's ready for connection even
if it hasn't still actually started up the databases it handles.
Here's a dump from the sql server log in chronological order:
1. SQL Server is now ready for client connections.
2. Starting up database 'tempdb'.
3. Login failed for user 'DOMDIGI\Mazzotti'. Reason: Failed to open
the explicitly specified database. [CLIENT: <local machine>]
4. Starting up database 'msdb'.
5. Starting up database 'ByAdv' --> this is the database the service
is trying to connect to.
As you can see, the service is attempting a connection well before the
database is ready.
How can I set a dependency on this specific database and not just on
the Sql Server service ?
The OS is Windows Server 2003, so delay start isn't available.
Thank you in advance