The following string includes the options used to connect using user ID and password authentication.

Note: The strings demonstrated in this section use the DSN-less format. For additional formats, see "Using a connection string".
DRIVER=DataDirect 8.0 Sybase IQ Wire Protocol;NetworkAddress=network_address;
Database=database_name;LogonID=user_name;Password=password;
[attribute=value[;...]];

where:

network_address

specifies the unique identifier assigned to the Sybase IQ server machine. For example, SybaseIQserver, 2638.

database_name

specifies the name of the database to which you want to connect.

user_name

specifies your username.

password

specifies your password.

attribute=value

specifies connection option settings. Multiple connection option attributes are separated by a semi-colon.

Note: The LogonID and Password options are not required to be stored in the connection string. They can also be sent separately by the application using the SQLConnect ODBC API. For SQLDriverConnect and SQLBrowseConnect, they will need to be specified in the connection string.

The following example connection string includes the options required for connecting to the database using user ID and password authentication.

DRIVER=DataDirect 8.0 Sybase IQ Wire Protocol;NetworkAddress=SybaseIQserver, 2638;
Database=SybaseIQdatabase;LogonID=jsmith;Password=secret;