hi, here is the scenario:
we have Data.dll that has few data classes and a module w/ global
functions like the one to update database, lets call is: "UpdateDB"
(it takes SQL statement as parameter).

im looking for the best possible way to do this now, so is it better
to:

1) have that global function (UpdateDB) open and close DB connection
within itself

2) open connection at the begining of one of the data functions and
close it at the end, pass connection object to that global function
(UpdateDB)

thanks,
wojo.