ODBC Driver for SAP Sybase Adaptive Server Enterprise

Connection String Options - SAP Sybase ASE ODBC Driver

Connection String Options - ODBC Driver for SAP Sybase Adaptive Server Enterprise

The following table describes the options that you can include in the connection string for SAP Sybase Adaptive Server Enterprise:
Option Description

Server

Serves to supply the server name for login.

Port

Used to specify the port number for the connection. 5000 by default.

User ID

Used to supply a unique User ID for login.

Password

Used to supply a password for login.

Database

Used to set the name of the database

ConnectionTimeout

Used to specify the time in seconds before an attempt to make a connection is considered unsuccessful.

IPVersion

Used to specify the version of the Internet Protocol. IPv4 and IPv6 are available. The IPv4 + IPv6 value allows to check for available protocol versions and use the first available automatically.

Advanced Settings

Option Description

Allow NULL strings

To retrieve metadata, not all parameters according to MSDN can accept a null value. If NULL, the driver should return an error. But some 3rd-party tools pass NULL to the parameters. These options should be enabled for compatibility with such tools.

Empty strings as NULL

String Types

Sets the string value types returned by the driver as Default, Ansi or Unicode.

  • Default - the driver defines the string types.
  • Ansi - all string types will be returned as SQL_CHAR, SQL_VARCHAR and SLQ_LONGVARCHAR.
  • Unicode - all string types will be returned as SQL_WCHAR, SQL_WVARCHAR and SLQ_WLONGVARCHAR.

The option value should be changed if any third-party tool supports only Ansi string types or Unicode ones.

RegionalNumberSettings

Enables using local regional settings when converting numbers to string.

RegionalDateTimeSettings

Enables using local regional settings when converting dates and times to string.

AllowFixedTypes

Adaptive Server Enterprise cannot distinguish SQL_CHAR from SQL_VARCHAR, SQL_WCHAR from SQL_WVARCHAR, and SQL_BINARY from SQL_VARBINARY on preparing an SQL statement. It can break compatibility with some third-party tools. So the driver always returns SQL_VARCHAR instead of SQL_CHAR, SQL_WVARCHAR instead of SQL_WCHAR, and SQL_VARBINARY instead of SQL_BINARY in metadata. To change this behavior and allow returning fixed types in metadata, this parameter should be set to True.

QuotedIdentifier

Used to quote the reserved words, in order for the server to consider them as identifiers to avoid any conficts.

ASE ODBC Connection String sample

DRIVER={Devart ODBC Driver for ASE};User ID=sa;Server=ASEserver;Data Source=master;Port=5000

See also:

© 2015-2018 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback