12 The Sybase Wire Protocol Driver : Connection Option Descriptions

Connection Option Descriptions
The following connection option descriptions are listed alphabetically by the GUI name that appears on the driver Setup dialog box. The connection string attribute name, along with its short name, is listed immediately underneath the GUI name.
In most cases, the GUI name and the attribute name are the same; however, some exceptions exist. If you need to look up an option by its connection string attribute name, please refer to the alphabetical table of connection string attribute names.
Also, a few connection string attributes, for example, Password, do not have equivalent options that appear on the GUI. They are in the list of descriptions alphabetically by their attribute names.
Table 12-1 lists the connection string attributes supported by the Sybase Wire Protocol driver.
Alternate Servers
Attribute
AlternateServers (ASRV)
Description
A list of alternate database servers to which the driver tries to connect if the primary database server is unavailable. Specifying a value for this option enables connection failover for the driver. The value you specify must be in the form of a string that defines the physical location of each alternate server. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection.
Valid Values
({NetworkAddress=addressvalue | InterfacesFileServerName=sectionvalue}[, ...])
NetworkAddress and InterfacesFileServerName can be used in the same string.
NOTE: An alternate server address in IPv6 format must be enclosed in double quotation marks.
You must specify the network address of each alternate database server or the section in the Interfaces file that contains the network connection information for the Sybase database server you want to access (InterfacesFileServerName).
NOTE: The Alternate Servers option and the HA Failover Server Connection Information option are mutually exclusive.
Example
The following example Alternate Servers values define three alternate database servers for connection failover:
(InterfacesFileServerName=Accounting, NetworkAddress="255.125.1.11, 4200", NetworkAddress="SybaseASE2, 4200")
In this example, the network address of the last two alternates contain commas. In this case, enclose the network address with double quotation marks as shown.
Default
None
GUI Tab
Failover tab
Application Name
Attribute
ApplicationName (APP)
Description
The name used by Sybase to identify your application.
Valid Values
string
where string is a valid application name.
Default
None
GUI Tab
Connection tab
Application Using Threads
Attribute
ApplicationUsingThreads (AUT)
Description
Determines whether the driver works with applications using multiple ODBC threads.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver works with single-threaded and multi-threaded applications.
If set to 0 (Disabled), the driver does not work with multi-threaded applications. If using the driver with single-threaded applications, this value avoids additional processing required for ODBC thread-safety standards.
Default
1 (Enabled)
GUI Tab
Advanced tab
Authentication Method
Attribute
AuthenticationMethod (AM)
Description
Specifies the method the driver uses to authenticate the user to the server when a connection is established. If the specified authentication method is not supported by the database server, the connection fails and the driver generates an error.
Valid Values
0 | 1 | 4
If set to 0 (No Encryption), the driver sends the user ID and password in clear text to the server for authentication.
If set to 1 (Encrypt Password), the driver sends the user ID in clear text and an encrypted password to the server for authentication.
If set to 4 (Kerberos Authentication), the driver uses Kerberos authentication. This method supports both Windows Active Directory Kerberos and MIT Kerberos environments.
If the specified authentication method is not supported by the database server, the connection fails and the driver generates an error.
Default
0 (No Encryption)
GUI Tab
Security tab
Batch Size
Attribute
BulkLoadBatchSize (BLBS)
Description
The number of rows that the driver sends to the database at a time during bulk operations. This value applies to all methods of bulk loading.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is the number of rows to send during a bulk operation.
Default
1024
GUI Tab
Bulk tab
Bulk Binary Threshold
Attribute
BulkBinaryThreshold (BBT)
Description
The maximum size, in KB, of binary data that is exported to the bulk data file.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
-1 | 0 | x
where x is an integer that specifies the number of KB.
If set to -1, all binary data, regardless of size, is written to the bulk data file, not to an external file.
If set to 0, all binary data, regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
If set to x, any binary data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
Default
32
GUI Tab
Bulk tab
Bulk Character Threshold
Attribute
BulkCharacterThreshold (BCT)
Description
The maximum size, in KB, of character data that is exported to the bulk data file.
Valid Values
-1 | 0 | x
where x is an integer that specifies the number of KB.
If set to -1, all character data, regardless of size, is written to the bulk data file, not to an external file.
If set to 0, all character data regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
If set to x, any character data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
Default
-1
GUI Tab
Bulk tab
Charset
Attribute
Charset (CS)
Description
The name of a character set installed on the Sybase server to be used by the driver.
This option is not a substitute for the IANAAppCodePage option. See IANAAppCodePage for details.
Valid Values
charset
where charset is the name of a character set installed on the Sybase server.
If unspecified, the character set setting on the Sybase server is used.
For the driver to return Unicode SQL types for connections to Sybase 12.5 and higher, use a value of UTF-8. Refer to the Sybase server documentation for a list of valid character sets.
Example
If your client needs to receive data in iso-8859-1 from a non-Unicode Sybase server, you would specify a value of iso_1.
Default
None
GUI Tab
Connection tab
Connection Cache Size
Attribute
CursorCacheSize (CCS)
Description
The number of connections that the connection cache can hold.
Valid Values
x
where x is a positive integer representing the number of connections that the connection cache can hold.
To enable the connection cache, you must set the Select Method option to 1 (enabled). Increasing the connection cache may increase performance of some applications but requires additional database resources.
Default
1
GUI Tab
Performance tab
Connection Pooling
Attribute
Pooling (POOL)
Description
Specifies whether to use the driver’s connection pooling.
NOTE: The application must be thread-enabled to use connection pooling.
Determines whether the driver works with applications using multiple ODBC threads.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses connection pooling.
If set to 0 (Disabled), the driver does not use connection pooling.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Reset
Attribute
ConnectionReset (CR)
Description
Determines whether the state of connections that are removed from the connection pool for reuse by the application is reset to the initial configuration of the connection.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the state of connections removed from the connection pool for reuse by an application is reset to the initial configuration of the connection. Resetting the state can negatively impact performance because additional commands must be sent over the network to the server to reset the state of the connection.
If set to 0 (Disabled), the state of connections is not reset.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Retry Count
Attribute
ConnectionRetryCount (CRC)
Description
The number of times the driver retries connection attempts to the primary database server, and if specified, alternate servers until a successful connection is established.
This option and the Connection Retry Delay connection option, which specifies the wait interval between attempts, can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, the driver does not try to connect after the initial unsuccessful attempt.
If set to x, the driver retries connection attempts the specified number of times. If a connection is not established during the retry attempts, the driver returns an error that is generated by the last server to which it tried to connect.
Default
0
GUI Tab
Failover tab
Connection Retry Delay
Attribute
ConnectionRetryDelay (CRD)
Description
The number of seconds the driver waits between connection retry attempts when Connection Retry Count is set to a positive integer.
This option and the Connection Retry Count connection option can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, there is no delay between retries.
If set to x, the driver waits the specified number of seconds between connection retry attempts.
Default
3
GUI Tab
Failover tab
Cursor Positioning for Raiserror
Attribute
RaiseErrorPositionBehavior (REPB)
Description
Determines whether the driver returns raiserrors when the next statement is executed or handles them separately.
Valid Values
0 | 1
If set to 0 (Default), raiserrors are handled separately from surrounding statements. The error is returned when a raiserror is processed (for example, resulting from SQLExecute, SQLExecDirect, or SQLMoreResults). The result set is empty.
If set to 1 (Microsoft compatible), raiserrors are returned when the next statement is processed, and the cursor is positioned on the first row of the subsequent result set. This could result in multiple raiserrors being returned on a single execute.
Default
0 (Default)
GUI Tab
Advanced tab
Data Source Name
Attribute
DataSourceName (DSN)
Description
The name of a data source in your Windows Registry or odbc.ini file.
Valid Values
string
where string is the name of a data source.
Default
None
GUI Tab
General tab
Database List
Attribute
n/a
Description
A list of database names that will appear in the drop-down list of the logon dialog box (see “Using a Logon Dialog Box” for a description).
Valid Values
database_list
where database_list is a comma-separated list of database names that will appear in the drop-down list of the logon dialog box.
Default
None
GUI Tab
Connection tab
Database Name
Attribute
Database (DB)
Description
The name of the database to which you want to connect.
Valid Values
database_name
where database_name is the name of a valid database.
Default
None
GUI Tab
General tab
Description
Attribute
Description (n/a)
Description
An optional long description of a data source. This description is not used as a runtime connection attribute, but does appear in the ODBC.INI section of the Registry and in the odbc.ini file.
Valid Values
string
where string is a description of a data source.
Default
None
GUI Tab
General tab
Default Buffer Size for Long/LOB Columns (in Kb)
Attribute
DefaultLongDataBuffLen (DLDBL)
Description
The maximum length of data (in KB) the driver can fetch from long columns in a single round trip and the maximum length of data that the driver can send using the SQL_DATA_AT_EXEC parameter.
This option also applies to binding long parameters in chunks. The driver truncates any data passed in a Long/LOB SQL_DATA_AT_EXEC parameter to the size specified.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer in multiples of 1024
The value must be in multiples of 1024 (for example, 1024, 2048). You need to increase the default value if the total size of any Long data exceeds 1 MB. This value is multiplied by 1024 to determine the total maximum length of fetched data. For example, if you enter a value of 2048, the maximum length of data would be 1024 x 2048, or 2097152 (2 MB).
Default
1024
GUI Tab
Advanced tab
Distributed Transaction Model
Attribute
DistributedTransactionModel (DTM)
Description
The model to use for distributed transaction support. The driver supports two different models: XA Protocol and Native OLE.
Valid Values
0 | 1
Specify the appropriate distributed transaction protocol, either 0 (XA Protocol) or 1 (Native OLE)
Default
0 (XA Protocol)
GUI Tab
Advanced tab
Enable Bulk Load
Attribute
EnableBulkLoad (EBL)
Description
Specifies the bulk load method.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses the database bulk load protocol when an application executes an INSERT with multiple rows of parameter data. If the protocol cannot be used, the driver returns a warning.
If set to 0 (Disabled), the driver uses standard parameter arrays.
Default
0 (Disabled)
GUI Tab
Bulk tab
Enable Describe Parameter
Attribute
EnableDescribeParam (EDP)
Description
Determines whether the driver supports the SQLDescribeParam function, which allows an application to describe parameters in SQL statements and in stored procedure calls.
Valid Values
0 | 1
If set to 1 (Enabled), the driver supports SQLDescribeParam. The Prepare Method option must be set to 0 or 1, and the SQL statement must not include long parameters. If using Microsoft Remote Data Objects (RDO) to access data, you must use this value.
If set to 0 (Disabled), the driver does not support SQLDescribeParam.
Default
0 (Disabled)
GUI Tab
Advanced tab
Enable Quoted Identifiers
Attribute
EnableQuotedIdentifiers (EQI)
Description
Determines whether the driver supports the use of quoted identifiers.
Valid Values
0 | 1
If set to 1 (Enabled), the driver supports the use of quoted identifiers. Double quotation marks (") must be used to enclose identifiers, such as column and table names. Character strings must be enclosed in single quotation marks, for example:
SELECT "au_id"
FROM "authors"
WHERE "au_lname" = 'O''Brien'
If set to 0 (Disabled), the driver does not support the use of quoted identifiers and generates an error when quoted identifiers are encountered.
Default
0 (Disabled)
GUI Tab
Advanced tab
Encryption Method
Attribute
EncryptionMethod (EM)
Description
The method the driver uses to encrypt data sent between the driver and the database server. If the specified encryption method is not supported by the database server, the connection fails and the driver returns an error.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 0 (No Encryption), data is not encrypted.
If set to 1 (SSL), data is encrypted using SSL. If the server supports protocol negotiation, the driver and server negotiate the use of TLS v1, SSL v3, or SSL v2 in that order.
This option can only be set to 1 when Authentication Method is set to 0 or 1.
Default
0 (No Encryption)
GUI Tab
Security tab
Failover Granularity
Attribute
FailoverGranularity (FG)
Description
Determines whether the driver fails the entire failover process or continues with the process if errors occur while trying to reestablish a lost connection.
This option applies only when Failover Mode is set to 1 (Extended Connection) or 2 (Select).
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
Valid Values
0 | 1 | 2 | 3
If set to 0 (Non-Atomic), the driver continues with the failover process and posts any errors on the statement on which they occur.
If set to 1 (Atomic) the driver fails the entire failover process if an error is generated as the result of anything other than executing and repositioning a Select statement. If an error is generated as a result of repositioning a result set to the last row position, the driver continues with the failover process, but generates a warning that the Select statement must be reissued.
If set to 2 (Atomic Including Repositioning), the driver fails the entire failover process if any error is generated as the result of restoring the state of the connection or the state of work in progress.
If set to 3 (Disable Integrity Check), the driver does not verify that the rows that were restored during the failover process match the original rows. This value applies only when Failover Mode is set to 2 (Select).
Default
0 (Non-Atomic)
GUI Tab
Failover tab
Failover Mode
Attribute
FailoverMode (FM)
Description
Specifies the type of failover method the driver uses.
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1 | 2
If set to 0 (Connection), the driver provides failover protection for new connections only.
If set to 1 (Extended Connection), the driver provides failover protection for new and lost connections, but not any work in progress.
If set to 2 (Select), the driver provides failover protection for new and lost connections. In addition, it preserves the state of work performed by the last Select statement executed.
Default
0 (Connection)
GUI Tab
Failover tab
Failover Preconnect
Attribute
FailoverPreconnect (FP)
Description
Specifies whether the driver tries to connect to the primary and an alternate server at the same time.
This attribute applies only when Failover Mode is set to 1 (Extended Connection) or 2 (Select) and at least one alternate server is specified.
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
Valid Values
0 | 1
If set to 0 (Disabled), the driver tries to connect to an alternate server only when failover is caused by an unsuccessful connection attempt or a lost connection. This value provides the best performance, but your application typically experiences a short wait while the failover connection is attempted.
If set to 1 (Enabled), the driver tries to connect to the primary and an alternate server at the same time. This can be useful if your application is time-sensitive and cannot absorb the wait for the failover connection to succeed.
Default
0 (Disabled)
GUI Tab
Failover tab
Fetch Array Size
Attribute
ArraySize (AS)
Description
The number of rows the driver retrieves from the server for a fetch. This is not the number of rows given to the user. This connection option can affect performance.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
x
where x is a positive integer specifying the number of rows.
Default
50
GUI Tab
Performance tab
Fetch TWFS as Time
Attribute
FetchTWFSasTime (FTWFSAT)
Description
Determines which ODBC data type the driver uses to return column values with the BIGTIME data type.
NOTE: The BIGTIME data type is supported in Sybase 15.5 and higher.
Valid Values
0 | 1
If set to 1, the driver returns column values for the BIGTIME data type as the ODBC data type SQL_TYPE_TIME. The fractional seconds portion of the value is truncated.
If set to 0, the driver returns column values for the BIGTIME data type as the ODBC data type SQL_TYPE_TIMESTAMP. When a timestamp is returned for BIGTIME, the Year, Month and Day parts of the timestamp must be set to zero.
Default
1
GUI Tab
Advanced
Field Delimiter
Attribute
BulkLoadFieldDelimiter (BLFD)
Description
Specifies the character that the driver will use to delimit the field entries in a bulk load data file.
Valid Values
x
where x is any printable character.
For simplicity, avoid using a value that can be in the data, including all alphanumeric characters, the dash(-), the colon(:), the period (.), the forward slash (/), the space character, the single quote (') and the double quote ("). You can use some of these characters as delimiters if all of the data in the file is contained within double quotes.
NOTE: The Bulk Load Field Delimiter character must be different from the Bulk Load Record Delimiter.
Default
None
GUI Tab
Bulk tab
GSS Client Library
Attribute
GSSClient (GSSC)
Description
The name of the GSS client library that the driver uses to communicate with the Key Distribution Center (KDC).
The driver uses the path defined by the PATH environment variable for loading the specified client library.
Valid Values
native | client_library
where client_library is a GSS client library installed on the client.
If set to client_library, the driver uses the specified GSS client library.
If set to native, the driver uses the GSS client shipped with the operating system.
Default
native
GUI Tab
Security tab
HA Failover Server Connection Information/Network Address
Attribute
FailoverNetworkAddress (FNA)
Description
The network address of the High Availability (HA) Failover server to be used in the event of a connection loss. The driver detects the dropped connection and automatically reconnects to the specified HA Failover server. This option is valid only for Sybase 12 and higher servers that have the High Availability Failover feature enabled.
Valid Values
IP_address, port_number | pipe_address, port_number | server_name, port_number
where
IP_ address is the IP address that uniquely identifies the HA Failover server.
port_number is the port number assigned to the listener process on the HA Failover server.
server_name is a name that uniquely identifies the HA Failover server. You can use this format if your environment supports named servers.
pipe_address is the pipe address of the HA Failover server. This format is required if using NamedPipes as the network protocol.
NOTE: The HA Failover Server Connection Information option and the Alternate Servers option are mutually exclusive.
Example
199.226.224.34, 5000
or
\\machine1\sybase\pipe\query, 5000
or
Sybaseserver, 5000
Default
None
GUI Tab
Failover tab
Host Name In Certificate
Attribute
HostNameInCertificate (HNIC)
Description
A host name for certificate validation when SSL encryption is enabled (Encryption Method=1) and validation is enabled (Validate Server Certificate=1). This option provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested.
Valid Values
host_name | #SERVERNAME#
where the host_name is the host name specified in the certificate. Consult your SSL administrator for the correct value.
If set to a host name, the driver examines the subjectAltName values included in the certificate. If a dnsName value is present in the subjectAltName values, then the driver compares the value specified for Host Name In Certificate with the dnsName value. The connection succeeds if the values match. The connection fails if the Host Name In Certificate value does not match the dnsName value.
If no subjectAltName values exist or a dnsName value is not in the list of subjectAltName values, then the driver compares the value specified for Host Name In Certificate with the commonName part of the Subject name in the certificate. The commonName typically contains the host name of the machine for which the certificate was created. The connection succeeds if the values match. The connection fails if the Host Name In Certificate value does not match the commonName. If multiple commonName parts exist in the Subject name of the certificate, the connection succeeds if the Host Name In Certificate value matches any of the commonName parts.
If set to #SERVERNAME#, the driver compares the host server name specified as part of a data source or connection string to the dnsName or the commonName value.
Default
None
GUI Tab
Security tab
IANAAppCodePage
Attribute
IANAAppCodePage (IACP)
Description
An Internet Assigned Numbers Authority (IANA) value. You must specify a value for this option if your application is not Unicode‑enabled or if your database character set is not Unicode. Refer to Chapter 4 “Internationalization, Localization, and Unicode” in the DataDirect Connect Series for ODBC Reference for details.
The driver uses the specified IANA code page to convert "W" (wide) functions to ANSI.
The driver and Driver Manager both check for the value of IANAAppCodePage in the following order:
If the driver does not find an IANAAppCodePage value, the driver uses the default value of 4 (ISO 8859-1 Latin-1).
Valid Values
IANA_code_page
where IANA_code_page is one of the valid values listed in Chapter 1 “Values for the Attribute IANAAppCodePage” in the DataDirect Connect Series for ODBC Reference. The value must match the database character encoding and the system locale.
Default
4 (ISO 8559-1 Latin-1)
GUI Tab
Advanced tab
Initialization String
Attribute
InitializationString (IS)
Description
A SQL command that is issued immediately after connecting to the database to manage session settings.
NOTE: If the statement fails to execute, the connection fails and the driver reports the error returned from the server.
Valid Values
SQL_command
where SQL_command is a valid SQL command that is supported by the database.
Example
To allow delimited identifiers, specify:
Initialization String=set QUOTED_IDENTIFIER on
Default
None
GUI Tab
Advanced tab
Interfaces File
Attribute
InterfacesFile (IF)
Description
The directory to the Interfaces file.
NOTE: This option and the Network Address option are mutually exclusive.
Valid Values
file_dir
where file_dir is the directory to the Interfaces file.
If unspecified and a value is specified for the Server Name option, the driver looks for the path name of the Interfaces file in the Registry under HKEY_LOCAL_MACHINE\SOFTWARE\DataDirect\InterfacesFile. If this Registry value is empty, the driver will try to open the SQL.INI file found in the same directory where the driver is located and use it as the Interfaces file.
Default
None
GUI Tab
General tab
Language
Attribute
Language (LANG)
Description
The national character set installed on the Sybase server.
Valid Values
charset
where charset is the national character set installed on the Sybase server.
Default
None (English)
GUI Tab
Connection tab
Load Balance Timeout
Attribute
LoadBalanceTimeout (LBT)
Description
The number of seconds to keep inactive connections open in a connection pool. An inactive connection is a database session that is not associated with an ODBC connection handle, that is, a connection in the pool that is not in use by an application.
NOTE: The Min Pool Size option may cause some connections to ignore this value.
Determines whether the driver works with applications using multiple ODBC threads.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is a positive integer that specifies a number of seconds.
If set to 0, inactive connections are kept open.
If set to x, inactive connections are closed after the specified number of seconds passes.
Default
0 (Disabled)
GUI Tab
Pooling tab
Load Balancing
Attribute
LoadBalancing (LB)
Description
Determines whether the driver uses client load balancing in its attempts to connect to the database servers (primary and alternate). You can specify one or multiple alternate servers by setting the Alternate Servers option.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses client load balancing and attempts to connect to the database servers (primary and alternate servers) in random order.
If set to 0 (Disabled), the driver does not use client load balancing and connects to each server based on their sequential order (primary server first, then, alternate servers in the order they are specified).
NOTE: This option has no effect unless alternate servers are defined for the Alternate Servers connection option.
Default
0 (Disabled)
GUI Tab
Failover tab
Login Timeout
Attribute
LoginTimeout (LT)
Description
The number of seconds the driver waits for a connection to be established before returning control to the application and generating a timeout error. To override the value that is set by this connection option for an individual connection, set a different value in the SQL_ATTR_LOGIN_TIMEOUT connection attribute using the SQLSetConnectAttr() function.
Valid Values
-1 | 0 | x
where x is a positive integer that specifies a number of seconds.
If set to -1, the connection request does not time out. The driver silently ignores the SQL_ATTR_LOGIN_TIMEOUT attribute.
If set to 0, the connection request does not time out, but the driver responds to the SQL_ATTR_LOGIN_TIMEOUT attribute.
If set to x, the connection request times out after the specified number of seconds unless the application overrides this setting with the SQL_ATTR_LOGIN_TIMEOUT attribute.
Default
15
GUI Tab
Advanced tab
Max Pool Size
Attribute
MaxPoolSize (MXPS)
Description
The maximum number of connections allowed within a single connection pool. When the maximum number of connections is reached, no additional connections can be created in the connection pool.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer from 1 to 65535
For example, if set to 20, the maximum number of connections allowed in the pool is 20.
Default
100
GUI Tab
Pooling tab
Min Pool Size
Attribute
MinPoolSize (MNPS)
Description
The minimum number of connections that are opened and placed in a connection pool, in addition to the active connection, when the pool is created. The connection pool retains this number of connections, even when some connections exceed their Load Balance Timeout value.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is an integer from 1 to 65535.
For example, if set to 5, the start-up number of connections in the pool is 5 in addition to the current existing connection.
If set to 0, no connections are opened in addition to the current existing connection.
Default
0
GUI Tab
Pooling tab
Network Address
Attribute
NetworkAddress (NA)
Description
A unique identifier assigned to the Sybase server machine.
NOTE: This option is mutually exclusive with the Interfaces File and the Server Name option.
Valid Values
server_name | IP_address
where
server_name is the Sybase server name specified as: named_server, port_number. For example, you can enter SSserver, 5000.
IP_address is the Sybase server address specified as: IP_address, port_number. For example, you can enter 199.226.224.34, 5000. The IP address can be specified in either IPv4 or IPv6 format, or a combination of the two. See “Using IP Addresses” for details about these formats.
Default
None
GUI Tab
General tab
Packet Size
Attribute
PacketSize (PS)
Description
Determines the number of bytes for each database protocol packet that is transferred from the database server to the client machine. Adjusting the packet size can improve performance. The optimal value depends on the typical size of data that is inserted, updated, or returned by the application and the environment in which it is running. Typically, larger packet sizes work better for large amounts of data. For example, if an application regularly returns character values that are 10,000 characters in length, using a value of 32 (16 KB) typically results in improved performance.
NOTE: The ODBC connection option SQL_PACKET_SIZE provides the same functionality as the Packet Size option; however SQL_PACKET SIZE and the Packet Size option are mutually exclusive. If Packet Size is specified, the driver returns the message Driver Not Capable if an application attempts to call SQL_PACKET_SIZE. If you do not set the Packet Size option, application calls to SQL_PACKET_SIZE are accepted by the driver.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
-1 | 0 | x
If set to -1, the driver uses the maximum packet size that is set by the database server.
If set to 0, the driver uses the default packet size that is used by the database server.
If set to x, an integer from 1 to 127, the driver uses a packet size that is a multiple of 512 bytes. For example, PacketSize=8 means to set the packet size to 8 * 512 bytes (4096 bytes).
NOTE: IF SSL encryption is used, the driver must use the packet size that is specified by the server. Any value set for this option or the SQL_PACKET_SIZE connect option is ignored if SSL encryption is used.
Default
0
GUI Tab
Performance tab
Password
Attribute
Password (PWD)
Description
The password that the application uses to connect to your database. The Password option cannot be specified through the driver Setup dialog box and should not be stored in a data source. It is specified through the Logon dialog box or a connection string.
Valid Values
pwd
where pwd is a valid password.
Default
None
GUI Tab
n/a
Prepare Method
Attribute
OptimizePrepare (OP)
Description
Determines whether stored procedures are created on the server for calls to SQLPrepare.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1 | 2 | 3
If set to 0 - None, stored procedures are created for every call to SQLPrepare. This setting can result in decreased performance when processing statements that do not contain parameters.
If set to 1 - Partial, the driver creates stored procedures only if the statement contains parameters. Otherwise, the statement is cached and run directly at the time of SQLExecute.
If set to 2 - Full, stored procedures are never created. The driver caches the statement, executes it directly at the time of SQLExecute, and reports any syntax or similar errors at the time of SQLExecute.
If set to 3 - Full at Prepare, stored procedures are never created. This is identical to value 2 except that any syntax or similar errors are returned at the time of SQLPrepare instead of SQLExecute. Use this setting only if you must have syntax errors reported at the time of SQLPrepare.
Default
1 (Partial)
GUI Tab
Performance tab
Query Timeout
Attribute
QueryTimeout (QT)
Description
The number of seconds for the default query timeout for all statements that are created by a connection. To override the value set by this connection option for an individual statement, set a different value in the SQL_ATTR_QUERY_TIMEOUT statement attribute on the SQLSetStmtAttr() function.
Valid Values
-1 | 0 | x
where x is a positive integer that specifies a number of seconds.
If set to -1, the query does not time out. The driver silently ignores the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to 0, the query does not time out, but the driver responds to the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to x, all queries time out after the specified number of seconds unless the application overrides this value by setting the SQL_ATTR_QUERY_TIMEOUT attribute.
Default
0
GUI Tab
Advanced tab
Record Delimiter
Attribute
BulkLoadRecordDelimiter (BLRD)
Description
Specifies the character that the driver will use to delimit the record entries in a bulk load data file.
Valid Values
x
where x is any printable character.
For simplicity, avoid using a value that can be in the data, including all alphanumeric characters, the dash(-), the colon(:), the period (.), the forward slash (/), the space character, the single quote (') and the double quote ("). You can use some of these characters as delimiters if all of the data in the file is contained within double quotes.
NOTE: The Bulk Load Record Delimiter character must be different from the Bulk Load Field Delimiter.
Default
None
GUI Tab
Bulk tab
Report Codepage Conversion Errors
Attribute
ReportCodepageConversionErrors (RCCE)
Description
Specifies how the driver handles code page conversion errors that occur when a character cannot be converted from one character set to another.
An error message or warning can occur if an ODBC call causes a conversion error, or if an error occurs during code page conversions to and from the database or to and from the application. The error or warning generated is Code page conversion error encountered. In the case of parameter data conversion errors, the driver adds the following sentence: Error in parameter x, where x is the parameter number. The standard rules for returning specific row and column errors for bulk operations apply.
Valid Values
0 | 1 | 2
If set to 0 (Ignore Errors), the driver substitutes 0x1A for each character that cannot be converted and does not return a warning or error.
If set to 1 (Return Error), the driver returns an error instead of substituting 0x1A for unconverted characters.
If set to 2 (Return Warning), the driver substitutes 0x1A for each character that cannot be converted and returns a warning.
Default
0 (Ignore Errors)
GUI Tab
Advanced tab
Select Method
Attribute
SelectMethod (SM)
Description
Determines whether database cursors are used for Select statements.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 0 (Cursor), database cursors are used. In some cases performance degradation can occur when performing large numbers of sequential Select statements because of the amount of overhead associated with creating database cursors.
If set to 1 (Direct), Select statements are run directly without using database cursors, and the data source is limited to one active statement.
Default
0 (Cursor)
GUI Tab
Performance tab
Server Name
Attribute
InterfacesFileServerName (IFSN)
Description
The name of the section in the Interfaces file containing the network connection information for the Sybase server. Typically, the section name is the host name of the Sybase server.
NOTE: The Network Address option and the Server Name option are mutually exclusive.
Valid Values
section_name
where section_name is a section in the Interfaces file containing the network connection information for the Sybase server.
Default
None
GUI Tab
General tab
Service Principal Name
Attribute
ServicePrincipalName (SPN)
Description
The service principal name to be used by driver for Kerberos authentication.
Valid Values
servicePrincipalName
where servicePrincipalName is a valid service principal name.
If unspecified, the value of the Network Address option is used as the service principal name. If Authentication Method is set to 0 or 1, the value of the Service Principal Name option is ignored.
Default
None
GUI Tab
Security tab
Tightly Coupled Distributed Transactions
Attribute
TightlyCoupledDistributedTransactions (TCDT)
Description
Sybase 12 or higher server only. Determines whether the driver ensures that multiple connections within the same distributed transaction obey other’s locks.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses tightly coupled distributed transactions. Multiple connections within the same distributed transaction obey other’s locks.
If set to 0 (Disabled), the driver does not use tightly coupled distributed transactions. Multiple connections within the same distributed transaction may hang each other because the connections do not obey other’s locks. This value can provide better performance if concurrency of data is not needed.
Default
1 (Enabled)
GUI Tab
Advanced tab
Truncate Time Type Fractions
Attribute
TruncateTimeTypeFractions (TTTF)
Description
Sybase 12.5.1 and higher only. Determines whether the driver sets fractional seconds to zero (0) when converting data from the TIME data type to TIMESTAMP, CHAR, or WCHAR data types.
Valid Values
0 | 1
If set to 1 (Enabled), the driver converts fractional seconds to zero when converting the TIME data type.
If set to 0 (Disabled), the driver does not set fractional seconds to zero when converting the TIME data type.
Default
0 (Disabled)
GUI Tab
Advanced tab
Truststore
Attribute
Truststore (TS)
Description
The directory that contains the truststore file and the truststore file name to be used when SSL is enabled (Encryption Method=1) and server authentication is used. The truststore file contains a list of the valid Certificate Authorities (CAs) that are trusted by the client machine for SSL server authentication. If you do not specify a directory, the current directory is used.
NOTE: The truststore and keystore files may be the same file.
Valid Values
truststore_directory\filename
where truststore_directory is the directory where the truststore file is located and filename is the file name of the truststore file.
Default
None
GUI Tab
Security tab
Truststore Password
Attribute
TruststorePassword (TSP)
Description
The password that is used to access the truststore file when SSL is enabled (Encryption Method=1) and server authentication is used. The truststore file contains a list of the Certificate Authorities (CAs) that the client trusts.
NOTE: The truststore and keystore files may be the same file; therefore, they may have the same password.
Valid Values
truststore_password
where truststore_password is a valid password for the truststore file.
Default
None
GUI Tab
Security tab
User Name
Attribute
LogonID (UID)
Description
The default user ID that is used to connect to your database. Your ODBC application may override this value or you may override it in the logon dialog box or connection string.
Valid Values
userid
where userid is a valid user ID with permissions to access the database.
Default
None
GUI Tab
Security tab
Validate Server Certificate
Attribute
ValidateServerCertificate (VSC)
Description
Determines whether the driver validates the certificate that is sent by the database server when SSL encryption is enabled (Encryption Method=1). When using SSL server authentication, any certificate sent by the server must be issued by a trusted Certificate Authority (CA). Allowing the driver to trust any certificate returned from the server even if the issuer is not a trusted CA is useful in test environments because it eliminates the need to specify truststore information on each client in the test environment.
Truststore information is specified using the Trust Store and Trust Store Password options.
Valid Values
0 | 1
If set to 1 (Enabled), the driver validates the certificate that is sent by the database server. Any certificate from the server must be issued by a trusted CA in the truststore file. If the Host Name In Certificate option is specified, the driver also validates the certificate using a host name. The Host Name In Certificate option provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested.
If set to 0 (Disabled), the driver does not validate the certificate that is sent by the database server. The driver ignores any truststore information specified by the Trust Store and Trust Store Password options.
Default
1 (Enabled)
GUI Tab
Security tab
Workstation ID
Attribute
WorkstationID (WKID)
Description
An identifier for the client machine.
Valid Values
ID
where ID is workstation ID use by the client machine.
Default
None
GUI Tab
Connection tab
XA Open String Parameters
Attribute
XAOpenStringParameters (XAOSP)
Description
Determines the name of trace files generated for XA open string parameters.
Valid Values
-Ltrace_filename
where trace_filename is a string that identifies trace files generated for XA open string parameters. If specified, two trace files are created. The first trace file traces all XA call activities and is named exactly as specified. The second trace file traces any enlistment and unenlistment procedures and is named as specified with a "driver" extension.
Example
If you specify -LXAtrace, the driver creates two trace files: XAtrace and XAtrace.driver.
Default
None
GUI Tab
Advanced tab