The basic elements of a connection string tend to be the same from one database type to another. However, each database type supports slightly different connection string syntax. This topic addresses those differences.
Option |
Description |
Default |
CommitRetain |
Commits the active transaction and retains the transaction context after a commit. |
False |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names, such as MS Access. |
False |
RoleName |
If there is a role for you in the database, you can enter the rolename here. The role is generally an authentication alias, that combines your identify with your access rights. |
myRole |
ServerCharSet |
Specifies the character set on the server. |
— |
SQLDialect |
Sets or returns the SQL dialect used by the client. |
3 |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
WaitOnLocks |
Specifies that a transaction wait for access if it encounters a lock conflict with another transaction. |
False |
Option |
Default |
Assembly |
Borland.Data.Interbase,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
Interbase |
VendorClient |
gds32.dll |
database=C:\Program Files\Common Files\CodeGear Shared\Data\EMPLOYEE.GDB; assembly=Borland.Data.Interbase,Version=2.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b; vendorclient=gds32.dll;provider=Interbase;username=sysdba;password=masterkey
Option |
Description |
Default |
BlobSize |
Specifies the upper limit of the size of any BLOB field. |
1024 |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names, such as MS Access. |
False |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
Option |
Default |
Assembly |
Borland.Data.Mssql,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
MSSQL |
VendorClient |
sqloledb.dll |
assembly=Borland.Data.Mssql,Version=2.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b; vendorclient=sqloledb.dll;osauthentication=True;database=Pubs;username=;hostname=(local);password=; provider=MSSQL
Option |
Description |
Default |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names. |
False |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
Option |
Default |
Assembly |
Borland.Data.Db2,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
DB2 |
VendorClient |
db2cli.dll |
Option |
Description |
Default |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names. |
False |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
Option |
Default |
Assembly |
Borland.Data.Oracle,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
Oracle |
VendorClient |
oci.dll |
Option |
Description |
Default |
BlobSize |
Specifies the upper limit of the size of any BLOB field. |
1024 |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names, such as MS Access. |
False |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
Option |
Default |
Assembly |
Borland.Data.Msacc,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
MSAccess |
VendorClient |
msjet40.dll |
database=C:\Program Files\Office Component Toolpack\Data\Northwind.mdb; assembly=Borland.Data.Msacc,Version=2.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b; vendorclient=msjet40.dll;provider=MSAccess;username=admin;password=
Option |
Description |
Default |
BlobSize |
Specifies the upper limit of the size of any BLOB field. |
1024 |
ClientAppName |
Client application name set by the middle-tier application. |
— |
ClientHostName |
Client host name set by the middle-tier application. |
— |
LoginPrompt |
Determines if you want the user to be prompted for a login every time the application tries to connect to the database. |
False |
PacketSize |
Specifies the number of bytes per network packet transferred from the database server to the client. |
512 |
QuoteObjects |
Specifies that table names, column names, and other objects should be quoted or otherwise delimited when included in a SQL statement. This is required for databases that allow spaces in names, such as MS Access. |
False |
TransactionIsolation |
Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. This specifies the value for the TAdoDbxTransaction. IsolationLevel property. |
ReadCommitted |
Option |
Default |
Assembly |
Borland.Data.Sybase,Version=Current Product Version,Culture=neutral,PublicKeyToken=Token # |
Provider |
Sybase |
VendorClient |
libct.dll |
assembly=Borland.Data.Sybase,Version=2.0.0.0,Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b;vendorclient=libct.dll;database=Pubs; username=admin;hostname=host1;password=;provider=Sybase
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|