Custom User Logon
A very simple example showing two methods of opening a connection at runtime.
The example uses DAConnectionManager.Connections[0] as the connection it opens. Examining its ConnectionString value via the Object Inspector, you will see that it is set to:
ADO?Server=localhost;UserID=sa;AuxDriver=SQLOLEDB.1;Database=Northwind
Modify it as needed to access a different database. See FAQ37 for examples of connection strings.