Collection Contents Index OLE DB providers Next PDF

SQL Anywhere® Server - Database Administration  > Connecting to a Database  > Connecting to a database using OLE DB

Connecting from ADO


ADO is an object-oriented programming interface. In ADO, the Connection object represents a unique session with a data source.

You can use the following Connection object features to initiate a connection:

Example

The following Visual Basic code initiates an OLE DB connection to SQL Anywhere:

' Declare the connection object
Dim myConn as New ADODB.Connection
myConn.Provider = "SAOLEDB"
myConn.ConnectionString = "DSN=SQL Anywhere 10 Demo"
myConn.Open
See also

Collection Contents Index OLE DB providers Next PDF