I am writing a program to keep track of inventory. I am using vb.net express with mysql. Every place I need to query the DB I setup a new connection, fill a new dataset, do what I need to do with the data, and close the connection. I know I should probably put the connection into it's own function(right now I repeat the same lines about 5 times throughout theh program) Do I need to open and close the connection for every query, or should I just connect at program startup, and close at exit?