History |
OpenConnection (database connections)
Purpose
Opens an ODBC data source connection.
This method must be run on any DBConnection object prior to opening statements and executing database operations.
Syntax
DBConnection.OpenConnection (DSN [,Login] [, Password])
Example
Sub Main()
Dim cnct As DBConnection
cnct.OpenConnection("MyDSN")
'Open the data source "MyDSN"
' Create statements and execute SQL...
' ...
cnct.CloseConnection
'Close the connection
End Sub
| ||||||||