Sie sind auf Seite 1von 4

Firebird connection strings - ConnectionStrings.

com

http://www.connectionstrings.com/firebird/

Developers number one connection string reference knowledge resources Q & A forums

log in

about

contribute

search

Firebird connection strings


.NET libraries OLE DB providers NONE ODBC drivers Wrappers and others

Firebird ADO.NET Data Provider

IBPhoenix Open Source ODBC Driver (aka Firebird ODBC driver)

.NET Framework Data Provider for ODBC

Firebird ADO.NET Data Provider


Standard
User = SYSDBA; Password = masterkey; Database = SampleDatabase.fdb; DataSource = localhost; Port = 3050; Dialect = 3; Charset = NONE; Role = ; Connection lifetime = 15; Pooling = true; MinPoolSize = 0; MaxPoolSize = 50; Packet Size = 8192; ServerType = 0;
Firebird

Q&A

ask question

Cadena de conexion Con BD firebird 2.5 desde Visual Basic en Visual Studio 2010 Como pasar los datos a un datagrid (how to pass data to a datagrid) Local SQL Server 2008 "Login failed for user" error

Using the Firebird embedded server


User = SYSDBA; Password = masterkey; Database = SampleDatabase.fdb; DataSource = localhost; Port = 3050; Dialect = 3; Charset = NONE; Role = ; Connection lifetime = 15; Pooling = true; MinPoolSize = 0; MaxPoolSize = 50; Packet Size = 8192; ServerType = 1; It's the key/value ServerType=1; that tells the driver it's in embedded mode.
Firebird

Disable pooling
User = SYSDBA; Password = masterkey; Database = SampleDatabase.fdb; DataSource = localhost; Port = 3050; Dialect = 3; Charset = NONE; Role = ; Connection lifetime = 15; Pooling = false; Packet Size = 8192; ServerType = 0;
Firebird

Articles

Problems connecting? Get answer in the Firebird Q & A forum

IBPhoenix Open Source ODBC Driver (aka Firebird ODBC driver)


Local database Firebird
DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = C:\database\myData.fdb;
Firebird

1 of 4

21/01/14 21:04

Firebird connection strings - ConnectionStrings.com

http://www.connectionstrings.com/firebird/

.NET Framework Data Provider for ODBC


Use an ODBC driver from .NET
Driver = {any odbc driver's name}; OdbcKey1 = someValue; OdbcKey2 = someValue; See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here .

Remote connection to Firebird


DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = MyServer:C:\database\myData.fdb; The default TCP/IP port 3050 will be used.
Firebird

Specifying TCP/IP port number


DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = MyServer/3051:C:\database\myData.fdb;
Firebird

Using alias (aliases.conf)


DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = aliasname; Example record in aliases.conf, aliasname = C:\database\myData.fdb
Interbase Firebird

Using alias (aliases.conf) for remote connections


DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = MyServer/3051:aliasname;
Interbase Firebird

Specifying dialect Firebird


SQL dialects were introduced in InterBase 6.0, to support a number of new SQL features including delimited identifiers. DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = C:\database\myData.fdb; DIALECT = 3; DIALECT=1 - Parser processes as it did in InterBase V5. DIALECT=2 - Transitional flagger. InterBaseV6, and Firebird flags ambiguous SQL constructs and issues an error or warning message. DIALECT=3 - Parser processes anything delimited by single quotes as string constants and any thing delimited by double quotes as SQL delimited identifiers.
Firebird

Autoquote identifiers
The driver will quote (") your table names in SQL statements automatically. DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = C:\database\myData.fdb; AUTOQUOTED = YES; 'SELECT A.Field FROM Table A' will be transformed into 'SELECT "A.Field" FROM "Table" A'
Firebird

2 of 4

21/01/14 21:04

Firebird connection strings - ConnectionStrings.com

http://www.connectionstrings.com/firebird/

Be aware that upper case SQL keywords must be used, ie SELECT and FROM etc, not Select and Related From, else transformation will fail.

Read Only connection (Firebird)


This one is for Firebird file with the .fdb extension. DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = C:\database\myData.fdb; READONLY = YES;
Firebird

Return with error on lock conflict (Firebird)


DRIVER Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; Didn't=find your connection string? DBNAME = C:\database\myData.fdb; NOWAIT = YES; Normally the transaction will wait if it encounters a lock conflict. This connection string will cause an error instead.

Start over from the connection string reference index - or try a search!

Firebird

In the Q&A forums you can ask your own question and let somebody help you.

Wait timeout for error on lock conflict solutions (Firebird)and guides. The knowledge articles contains
DRIVER = Firebird/InterBase(r) driver; UID = SYSDBA; PWD = masterkey; DBNAME = C:\database\myData.gdb; LockTimeoutWaitTransactions = 4; Normally the transaction will wait if it encounters a lock conflict. This connection string will raise an error after 4 seconds.
Firebird

3 of 4

21/01/14 21:04

Firebird connection strings - ConnectionStrings.com

http://www.connectionstrings.com/firebird/

Connection Strings
Copyright 2013
.

Articles

Q&A
All Rights Reserved

Contribute
Powered by CSAS

Advertise

Contact

Retro

About

ConnectionStrings.com

With support from Contributing Developers and Windward Reports

4 of 4

21/01/14 21:04

Das könnte Ihnen auch gefallen