Connection String Options - InterBase ODBC Driver

ODBC Driver for InterBase

Connection String Options - InterBase ODBC Driver

InterBase Connection Options

The following table describes the options that you can include in the connection string for InterBase:

Option Description

Charset

Used to set the character set that ODBC driver for InterBase uses to read and write character data.

ClientLibrary

Used to specify the path to the Firebird client library. E.g., C:\Windows\System32\fbclient.dll

Database

The full path to the database to connect to.

Password

Used to supply a password for login.

Port

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

Protocol

Used to specify the Network protocol for connection with Firebird server.

TCP

Uses TCP/IP to connect to the server.

NetBEUI

Uses NetBEUI named pipe for connection

SPX

Uses the SPX protocol for connection

Role

Used to specify the user role for connection to InterBase. More details about InterBase roles are available at https://www.ibphoenix.com/resources/documents/general/doc_59

Server

Serves to supply the server name for login.

User ID

Used to supply a unique User ID for login.

UseUnicode

Used to enable or disable Unicode support.

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.

InterBase ODBC Connection String sample

DRIVER={Devart ODBC Driver for InterBase};Data Source=127.0.0.1;User ID=sysdba;Password=masterkey;Client Library=fbclient.dll;Database=c:\fbd.fdb

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