I need to make a windows service that will get the data from serial port and write them into the database.
I am using a card reader so the port will get the cardId and datetime when the card was registered.
This information will be written into the database.
I wanted to ask if this is possible to be done in windows service. Should I write a function about it in the windows service program.
I found a solution in this link : http://blogs.msdn.com/b/bethmassi/archive/2007/05/05/reading-from-a-serial-port-and-saving-to-a-database.aspx
but I don't know if this can be done inside the windows service.