The attached class provides a means to establish a connection so a MSSQL server.
The first time the object is used to query the underlying database, a connection screen opens up and prompts the user to enter connection parameters. Both basic and windows authentication are supported. If the connection attempt is successful, the object encrypts the connection details and stores the connection in an encrypted file in the program's installation directory.
The class allows the database to be queried and returns the query results as an untyped datatable.