views:

69

answers:

0

Hello everyone

I have a Windows Server 2003 and I have a windows service A which depends on a second service B. Service A is created by me, and service B is SQL Server 2008, so my service needs to save data into the database using SQL Server when Windows is shutting down. The problem is that sometimes, SQL Server is killed before my service is, so I cannot save the data properly.

QUESTION: Is there any way to make a dependency between my process and SQL Server on Windows shut down?

Thanks a lot in advance!