Write application using VB to communicate with your hardware via RS232, usb or LPT port.
next Connect your remote application to database using sql (for example, Server=sql_box;Database=Common;User ID=uid;Pwd=password. Once a connection has been built it can be opened and closed at will, and you can add variables to you data base.