DBDeclare

Function:

Declares a database connection.

Syntax:

DBDeclare <Name of the database> "<Connection string>"

Example:

; This example creates a connection to a Microsoft Access database
DBDeclare myDatabase "Provider=Microsoft.Jet.OLEDB.4.0;User ID=;Password=;Data Source=C:\myDatabase.mdb;Persist Security Info=False"

 

; This example creates a connection to an ODBC connection
DBDeclare myDatabase "DSN=myODBC"