----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Mrinal Message 2 in Discussion Hi , check the links below : http://www.c-sharpcorner.com/2/window_service.asp http://www.fawcette.com/archives/premier/mgznarch/vbpj/2001/08aug01/ce0108/ce0108-1.asp This will help you to get an idea to develop a .Net windows (NT) service , now going ahead with your problem statement , I am not very sure that why do you need a windows service for the purpose , as they are more for the purpose of continuously keep on performing a task under the cover , but for checking availability of a database , just use System.data classes like SqlConnection assuming for Sql server and if it connects then db is available else not and you can appropriately return a boolean value . As far time based starting and stopping is concerned , u can create a user interface based utility to keep track of system time and at regular intervals keep on switching the start / stop , or you can check up their might me some utility available inside service events . also if you want to manage whole show from a remote system , then you may use Servicecontroller class , check out this article , but then i think u need to authenticate : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemServiceProcessServiceControllerClassTopic.asp hope it helps , regards , Mrinal ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
