how to create window services in c# and how to conncect to data base in window service

Posted by rameshmandapelly-7781 under Regular Expressions on 2/7/2011 | Points: 10 | Views : 11752 | Status : [Member] | Replies : 2
how to create window services in c# and how to connect to data base in window service




Responses

Posted by: SheoNarayan on: 2/7/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Creating Windows service article is at http://www.dotnetfunda.com/articles/article1095-creating-a-windows-service-using-csharp-.aspx that will help you to know how to create and run a Windows Service.

To connect Windows service to the database, you can use the ADO.NET, the way you use in code behind file of aspx or in the class library (for example in DAL - Data Access Layer). Go through this article or download the attachment of this article http://www.dotnetfunda.com/articles/article71.aspx and you can see how to access the database using SqlClient.

This post will help you to install and uninstall windows service through command line http://www.dotnetfunda.com/codes/code147-how-to-install-and-uninstall-windows-services-.aspx.

Hope this will help you.

Thanks


Regards,
Sheo Narayan
http://www.dotnetfunda.com

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check these links

http://www.codeproject.com/KB/system/WindowsService.aspx

http://www.csharp-examples.net/restart-windows-service/

Thanks
Karthik
www.f5Debug.net

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response