There are probably many ways to do that.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Sorry, I don't use databases. But I have seen LOTS of code on forums that connect to servers and access databases.
Use Search or Google for the getConnection method for example
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656