OLE DB Connection Parameters

OLE DB connection parameters are defined by Microsoft. The SAP Sybase IQ OLE DB provider supports a subset of these connection parameters. A typical connection string looks like this:

"Provider=SAOLEDB;Data Source=myDsn;Initial Catalog=myDbn;
    User ID=myUid;Password=myPwd"

Below are the OLE DB connection parameters that are supported by the provider. In some cases, OLE DB connection parameters are identical to (for example, Password) or resemble (for example, User ID) SAP Sybase IQ connection parameters. Note the use of spaces in many of these connection parameters.

Other OLE DB connection parameters can be specified but they are ignored by the OLE DB provider.

When the SAP Sybase IQ OLE DB provider is invoked, it gets the property values for the OLE DB connection parameters. Here is a typical set of property values obtained from Microsoft's RowsetViewer application.

User ID '<user_id>' 
Password '<password>' 
Location 'localhost:4444' 
Initial Catalog 'demo'
Data Source 'testds' 
Extended Properties 'appinfo=api=oledb' 
Prompt 2 
Window Handle 0 

The connection string that the provider constructs from this set of parameter values is:

'DSN=testds;HOST=localhost:4444;DBN=demo;UID=<user_id>;PWD=<password>;appinfo=api=oledb'

The SAP Sybase IQ OLE DB provider uses the connection string, Window Handle, and Prompt values as parameters to the database server connection call that it makes.

This is a simple ADO connection string example.

connection.Open "Provider=SAOLEDB;UserID=<user_id>;Location=localhost:4444;Pwd=<password>"

ADO parses the connection string and passes all of the unrecognized connection parameters in Extended Properties. When the SAP Sybase IQ OLE DB provider is invoked, it gets the property values for the OLE DB connection parameters. Here is the set of property values obtained from the ADO application that used the connection string shown above.

User ID ''
Password ''
Location 'localhost:4444'
Initial Catalog ''
Data Source ''
Extended Properties 'UserID=<user_id>;Pwd=<password>'
Prompt 4
Window Handle 0

The connection string that the provider constructs from this set of parameter values is:

'HOST=localhost:4444; UserID=<user_id>;Pwd=<password>'

The provider uses the connection string, Window Handle, and Prompt values as parameters to the database server connection call that it makes.