I have a question regarding where to place the code for the db-connection in the program. I have a smart device app and I'm establishing every time a db-conn before a query and closing it after the query is finished.
I have the feeling that to establish a connection it takes a certain time. Wouldnt it be better to establish the connection in On Form_Load or so and just look up whether its still open before querying?
What would you advise?
Regards