I am building a wireless bar code scanner application that communicates with SQL Server very frequently. The problem that I am running into is that the scanner is sometimes going out of range of the receiver. I would like to set up something that will test to see if it was in range by seeing if the database is accessible (unless there is a better way).
The two ideas that I have are before each select, update, or delete have a sub that would try to open the database or something that would let me know if it had access to it. The seconded one is to do some type of error catching in each select, update, or delete that would let me know. Either way I don’t know how to do it.
Are either of these a better way or can anyone suggest a better method? This is my first application in VB.net, so I am not an expert. I could post some of my code for connection if needed.
-Uncle Cake
The two ideas that I have are before each select, update, or delete have a sub that would try to open the database or something that would let me know if it had access to it. The seconded one is to do some type of error catching in each select, update, or delete that would let me know. Either way I don’t know how to do it.
Are either of these a better way or can anyone suggest a better method? This is my first application in VB.net, so I am not an expert. I could post some of my code for connection if needed.
-Uncle Cake