Додаткові налаштування підключення до бази даних

Для доступу до баз даних сервіс використовує компоненти UniDAC від Devart. Налаштування за замовчуванням підійдуть більшості користувачів, але якщо ви маєте проблеми з роботою або підключенням до бази, то ви можете відредагувати параметри вручну. Додаткові налаштування підключення до баз даних знаходяться у файлі Connection.ini у папці, куди ви встановили ваш портал Fox24.

Редагувати налаштування у файлі Connection.ini можна, наприклад, у блокноті. Після збереження змін, сервіс порталу Fox24 потрібно перезапустити. Деякі зміни (наприклад, використання Unicode) можуть вимагати видалення всіх даних із бази даних або створення бази повторно.

Опис параметрів підключення з посібника користувача UniDAC.

DB2-specific options

Option nameDescription
ColumnWiseBindingIf set to True, the option enables Column-Wise Binding mode. The fefault value is False.
Note: Row-Wise Binding mode is enabled by default. However, some ODBC drivers don’t support this mode. In such case, set the ColumnWiseBinding option to True.
ConnectionTimeoutThe time to wait for a connection to open before raising an exception.
FunctionPathUse the FunctionPath property to change the current function path of the connection to the specified value. You can specify several names separated by comma. This option can be used to call stored procedures from a schema other than that of the current user without having to qualify the objects with the schema name.
SchemaUse the Schema property to change the current schema of the connection to the specified schema. This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name.
UseUnicodeEnables or disables Unicode support. Affects character data fetched from the server. When set to True, all character data is stored as WideStrings, and TStringField is replaced by TWideStringFiled.

InterBase/Firebird-specific options

Option nameDescription
CharLengthSpecifies the size in bytes of a single character. Set this option with the number in range [0..6] to reflect InterBase support for the national languages. Setting CharLength to zero will instruct TUniConnection to interrogate InterBase server for the actual character length.
The default value is 1.
CharsetSets character set that IBDAC uses to read and write character data.
ClientLibraryUse the ClientLibrary option to set or get the client library location.
EnableMemosIf set to True, TMemoField and TWideMemoField will be created for BLOB subtype 1 fields. The default value is False.
ForceUnloadClientLibraryUse the option to force unloading of the client library after the connection is closed. The default value is False.
IPVersionUse the IPVersion property to specify Internet Protocol Version.
Supported values:
ivIPBoth (default) Specifies that either Internet Protocol Version 6 (IPv6) or Version 4 (IPv4) will be used.
ivIPv4 Specifies that Internet Protocol Version 4 (IPv4) will be used.
ivIPv6 Specifies that Internet Protocol Version 6 (IPv6) will be used.
Note: Internet Protocol Version support has been added in Firebird 3. To use the IPVersion option, your client library version must be version 3 or higher.
When the TIPVersion property is set to ivIPBoth, a connection attempt will be made via IPv6 if it is enabled on the operating system. If the connection attempt fails, a new connection attempt will be made via IPv4.
NoDBTriggersUse the option to enable or disable all database triggers. By default, all triggers are enabled.
ParamsThe option allows specifying custom parameters of the transaction. Refer to the InterBase API guide for more information on the parameters. Custom parameters will be used only when the TUniTransaction.IsolationLevel property is set to ilCustom. Multiple parameters can be separated either with the CRLF or with the “;” character.
ProtocolNetwork protocol of connection with InterBase server. The default value is TCP.
RoleInterBase connection role.
SQLDialectUse SQLDialect to set or return SQL Dialect used by InterBase client. The SQLDialect property cannot be set to a value greater than the database SQL dialect when the connection is active. If the connection is inactive, the SQLDialect option will be downgraded to match the database SQL dialect.
SSLClientCertFileThe name and location of the client certificate file. The file must be in the PEM format and contain both the client certificate and the private key.
SSLClientPassPhraseThe private key passphrase. You can use either this option or the SSLClientPassPhraseFile option.
SSLClientPassPhraseFileThe name and location of the text file containing the client private key passphrase. You can use either this option or the SSLClientPassPhrase option.
SSLServerPublicFileThe name and location of the CA certificate file in the PEM format.
SSLServerPublicPathThe location of the directory with the CA certificate files in the PEM format. Each file in the directory must contain only a single CA certificate and the files must be named by the hash of the subject name and extension of “.0”. It is recommended that you use SSLServerPublicFile instead. If you specify both, SSLServerPublicFile will be used.
TrustedAuthenticationWindows “Trusted User” security can be applied for authenticating Firebird users on a Windows host.
When the option is set to True, the Firebird security database is ignored during establishing a connection, and only Windows authentication is used.
The default value is False
UseSSLEnables or diables SSL connections. The default value is False.
UseUnicodeEnables or disables Unicode support. Affects on the character data fetched from the server. When set to True all character data is stored as WideStrings, and TStringField is replaced with TWideStringFiled.
SimpleNumericMapUsed to create ftBCD fields. When it is set to “False” and EnableBCD to “True”, fields like DECIMAL(14, 4) are mapped as ftBCD. The option default value is “True”.
WireCompressionEnables or disables compression of data over the wire at global or individual database level. Use Params to pass this connection parameter, for example WireCompression=True. Disabled by default.
Note: You should place zlib1.dll in the same location as fbclient.dll.

MySQL-specific options

Якщо вам не вдається встановити підключення до БД MySQL версії 8.x або новіше, встановіть у налаштуваннях сервера MySQL 8 опцію Use Legacy Authentication Method. Іноді для цього потрібно запустити інсталяцію сервера і вибрати Reconfigure на сторінці установки/конфігурації.

Option nameDescription
CharsetSetups the character set used by the client.
CompressUse compression on transferring data. Setting this property to True is quite effective on transferring big volume data through slow connection. This property is ignored under CLR. The default value is False.
ConnectionTimeoutSpecifies the amount of time in seconds that can be expired before an attempt to make a connection is considered unsuccessful.
EmbeddedIf True, connects to Embedded MySQL server. If False, connects to MySQL server. The default value is False.
EmbeddedParamsAllows to set such parameters of embedded connection as –basedir, –datadir, etc. Parameters should be separated with newline characters (#13#10), for example:
UniConnection.SpecificOptions.Values[‘MySQL.EmbeddedPrams’] := ‘–basedir=.’#13#10′–datadir=data’;
The default value is ”
HttpTrustServerCertificateThis option specifies whether or not the driver should trust the server certificate when connecting to the server. The default value is False – the driver won’t trust the server certificate and will verify validity of the server certificate instead. If set to True, the driver will trust the server certificate.
InteractiveDetermines the inactivity timeout before the server breaks the connection. If true, the server breaks the connection after number of seconds specified in interactive_timeout sever variable, otherwise wait_timeout is used. The default value is false. The interactive_timeout and wait_timeout variables can be set in my.ini file.
IPVersionUse the IPVersion property to specify Internet Protocol Version.
Supported values:
ivIPBoth Specifies that either Internet Protocol Version 6 (IPv6) or Version 4 (IPv4) will be used.
ivIPv4 (default)
Specifies that Internet Protocol Version 4 (IPv4) will be used.
ivIPv6
Specifies that Internet Protocol Version 6 (IPv6) will be used.
Note: When the TIPVersion property is set to ivIPBoth, a connection attempt will be made via IPv6 if it is enabled on the operating system. If the connection attempt fails, a new connection attempt will be made via IPv4.
NullForZeroDelphiDateUse the NullForZeroDelphiDate property to hide the ’30-12-1899′ dates. If NullForZeroDelphiDate is set to True, the values of all datetime fields will be changed to Null. If the property is set to False, the ’30-12-1899′ value will be used as an ordinary date. The default value is false.
OptimizedBigintSetting this option converts all fields with field length less than 11 of TLargeIntField type into TIntegerField. This allows to process fields that are results of numeric function or cast values as usual Integer fields. The default value is False.
ProtocolSpecifies which protocol to use when connecting to the server:
mpDefault Similar to mpTCP, except the cases when you connect to a local server and the OS supports sockets (Unix) or named pipes (Windows), they are used instead of TCP/IP to connect to the server.
mpTCP Use TCP/IP to connect to the server.
mpSocket Uses sockets to connect to the server. Can be used with Direct set to False and libmysql.dll 4.1.
mpPipe Use NamedPipes to connect to the server.
mpMemory To connect to the server using SharedMem. Can be used with Direct set to False and libmysql.dll 4.1.
mpSSL Use protected SSL connection with the server.
mpHttp Uses HTTP Network Tunneling to connect to the server.
HttpUrlHolds the url of the tunneling PHP script.
HttpUsernameHolds the user name for HTTP authorization.
HttpPasswordHolds the password for HTTP authorization.
ProxyHostnameHolds the host name or IP address to connect to proxy server.
ProxyPortUsed to specify the port number for TCP/IP connection with proxy server.
ProxyUsernameHolds the proxy server account name.
ProxyPasswordHolds the password for the proxy server account.
SSLCACertCACert is the pathname to the certificate authority file.
SSLCertCert is the pathname to the certificate file.
SSLChipherListChipherList is a list of allowable ciphers to use for SSL encryption.
SSLKeyKey is the pathname to the key file.
UseUnicodeInforms server that all data between client and server sides will be passed in UTF-8 coding. Setting this option converts all fields of TStringField type into TWideStringField that allows to work correctly with symbols of almost all languages simultaneously. On the other hand, it causes a delay in working. The default value is False.

SQL Server-specific options

Option nameDescription
ApplicationIntentSpecifies the application workload type when connecting to a server.
ApplicationNameThe name of a client application. The default value is the name of the executable file of your application
AuthenticationUse the Authentication property to specify authentication service used by the database server to identify a user. The Authentication property accepts one of the following values:

auWindows
Uses Windows NT/2000/XP integrated security, or “SSPI” (Security Support Provider Interface). Username, Password and LoginPrompt properties are ignored.

auServer (default)
An alternative way of identifying users by database server. To establish a connection valid Username and Password either hardcoded into application or provided in server login prompt fields are required.
AutoTranslateWhen set to True, character strings sent between the client and server are translated by converting through Unicode to minimize problems in matching extended characters between the code pages on the client and the server.
CompactAutoShrinkThresholdSpecifies the amount of free space in the database file before automatic shrink will start. Measured in percents. The default value is 60.
CompactDefaultLockEscalationSpecifies how many locks should be performed before trying escalation from row to page or from page to table. The default value is 100.
Compact FlushIntervalSpecifies the interval at which committed transactions are flushed to disk. Measured in seconds. The default value is 10.
CompactInitModeUse this property to specify the file mode that will be used to open the database file. The InitMode property accepts one of the following values:

imExclusive
Database file is opened for exclusive use. This mode prevents others from opening this database file.

imReadOnly
Database file is opened for reading. All operations that write to database are unallowable.

imReadWrite (default)
Both read and write operations are allowed.

imShareRead
Opens a database file preventing others from opening the same file in the read mode.
CompactLocaleIdentifierSpecifies the locale ID. The default value is the system default locale on Windows systems and 0 on other systems.
CompaLockEscalationSpecifies how many locks should be performed before trying escalation from row to page or from page to table. Measured in milliseconds. The default value is 100.
CompactLockTimeoutSpecifies how much time a transaction will wait for a lock. Measured in milliseconds. The default value is 2000.
CompactMaxBufferSizeSpecifies how much memory SQL Server Compact Edition can use before flushing changes to disc. Measured in kilobytes. The default value is 640.
CompactMaxDatabaseSizeSpecified maximum size of the main database file. Measured in megabytes. The default value is 128.
CompactTempFileDirectorySpecifies the temp file directory. If this option is not assigned, the current database is used as a temporary database.
CompactTempFileMaxSizeSpecified maximum size of the temporary database file. Measured in megabytes. The default value is 128.
CompactTransactionCommitModeSpecifies in what way the buffer pool will be flushed on transaction commit. The following two values are allowed:
cmAsynchCommit Asynchronous commit to disk.
cmSynchCommit (default) Synchronous commit to disk.
CompactVersionSpecifies which version of SQL Server Compact Edition will be used.

cvAuto (default)
Version of SQL Server Compact Edition will be chosen automatically depending on database version. If database is not provided, the higher available server version will be chosen.

cv30
Uses SQL Server Compact Edition Version 3.0 or 3.1.

cv35
Uses SQL Server Compact Edition Version 3.5.
ConnectionTimeoutUse ConnectionTimeout to specify the amount of time, in seconds, that can expire before an attempt to consider a connection unsuccessful. The default value is 15 seconds.
EncryptSpecifies if data should be encrypted before sending it over the network. The default value is False.
FailoverPartnerSpecifies the SQL Server name to which SQL Native Client will reconnect when a failover of the principal SQL Server occurs. This option is supported only for SQL Server 2005 using SQL Native Client as an OLE DB provider.
ForceCreateDatabaseUsed to force TLiteConnection to create a new database before opening a connection, if the database does not exist.
IPVersionUse the IPVersion property to specify Internet Protocol Version.

Supported values:

ivIPBoth
Specifies that either Internet Protocol Version 6 (IPv6) or Version 4 (IPv4) will be used.

ivIPv4 (default)
Specifies that Internet Protocol Version 4 (IPv4) will be used.

ivIPv6
Specifies that Internet Protocol Version 6 (IPv6) will be used.

Note: When the TIPVersion property is set to ivIPBoth, a connection attempt will be made via IPv6 if it is enabled on the operating system. If the connection attempt fails, a new connection attempt will be made via IPv4.
InitialFileNameSpecifies the name of the main database file. This database will be default database for the connection. SQL Server attaches the database to the server if it has not been attached to the server yet. So, this property can be used to connect to the database that has not been attached to the server yet.
LanguageA SQL Server language name. Identifies the language used for system message selection and formatting. The language must be installed on the computer running an instance of SQL Server otherwise the connection will fail.
LockTimeoutSpecifies the number of milliseconds that a transaction will wait to obtain a lock to avoid global deadlocks. The default value is 2000.
MultipleActiveResultSetsEnables support for SQL Server 2005 Multiple Active Result Sets (MARS) technology. It allows applications to have more than one pending request per connection, and in particular, to have more than one active default result set per connection. Current session is not blocked when using FetchAll = False, and it is not necessary for OLE DB to create additional sessions for any query executing. MARS is only supported by SQL Server 2005 with using SQL Native Client as OLE DB provider.
MultipleConnectionsEnables or disables the creation of additional connections to support concurrent sessions, commands and rowset objects.
MultiSubnetFailoverUse the MultiSubnetFailover option to configure the prNativeClient or prMSOLEDB provider to faster detect and connect to the currently active server by making simultaneous connection attempts to all IP addresses associated with the group listener of a SQL Server AlwaysOn Availability Group or a SQL Server Failover Cluster Instance. The default value is False.
NativeClientVersionSpecifies which version of SQL Native Client will be used. The default value is ncAuto. NativeClientVersion is applied when the Provider property is set to prNativeClient or prAuto.
NetworkLibraryThe name of the Net-Library (DLL) used to communicate with an instance of SQL Server. The name should not include the path or the .dll file name extension. The default name is provided by the SQL Server Client Network Utility.
PacketSizeNetwork packet size in bytes. The packet size property value must be between 512 and 32,767. The default network packet size is 4,096.
PersistSecurityInfoThe data source object is allowed to persist sensitive authentication information such as password along with other authentication information.
ProviderThis property allows you to specify a provider from the list of supported providers or use the Direct mode. Some features added to SQL  Server 2005 require the SQL Native Client (prNativeClient) provider to be used. If chosen provider is not installed, an exception is raised.

Supported values:

prAuto (default)
prAuto is the default value of the Provider property. With default value, UniDAC will use the most recent version of one of the supported providers in the following order:
1. prNativeClient
2. prMSOLEDB
3. prSQL
First UniDAC checks whether SQL Server Native Client is installed in the system. If SQL Server Native Client is not found, UniDAC looks for Microsoft OLE DB Driver for SQL Server. If neither SQLNCLI nor MSOLEDBSQL is installed in the system, the driver will use Microsoft OLE DB Provider for SQL Server.

prSQL
Uses the provider preinstalled with Windows that has limited functionality.

prMSOLEDB
Uses Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL). You need to have the driver installed on your system to use this value for Provider.

prNativeClient
Uses the SQL Native Client. It should be installed on the computer to use this Provider value. This provider offers the maximum functionality set.

prCompact
SQL Server Compact Edition provider.

prDirect
Connect to SQL Server directly via TCP/IP.
QuotedIdentifierCauses Microsoft® SQL Server™ to follow the SQL-92 rules regarding quotation mark delimiting identifiers and literal strings. Identifiers delimited by double quotation marks can be either Transact-SQL reserved keywords or can contain characters not usually allowed by the Transact-SQL syntax rules for identifiers.
QuotedIdentifier must be True when creating or manipulating indexes on computed columns or indexed views. If QuotedIdentifier is False, CREATE, UPDATE, INSERT, and DELETE statements on tables with indexes on computed columns or indexed views will fail.

True (default)
Identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks.
All strings delimited by double quotation marks are interpreted as object identifiers. Therefore, quoted identifiers do not have to follow the Transact-SQL rules for identifiers. They can be reserved keywords and can include characters not usually allowed in Transact-SQL identifiers. Double quotation marks cannot be used to delimit literal string expressions; single quotation marks must be used to enclose literal strings. If a single quotation mark (‘) is a part of the literal string, it can be represented by two single quotation marks (“). QuotedIdentifier must be True when reserved keywords are used for object names in the database.

False (BDE compatibility)
Identifiers cannot be quoted and must follow all Transact-SQL rules for identifiers. Literals can be delimited by either single or double quotation marks. If a literal string is delimited by double quotation marks, the string can contain embedded single quotation marks, such as apostrophes.
UseWideMemosUse the option to manage the field type that will be created for the NTEXT data type. If True (default), TWideMemo fields will be created for the NTEXT data type. If False, TMemo fields will be created.
UuidWithBracesUse the UuidWithBraces option to specify whether the values of UUID fields are returned with braces. The default value is True.
TrustServerCertificateLets enabling traffic encryption without validation. The default value is False. This option is only supported by SQL Server 2005 with using SQL Native Client as OLE DB provider.
WorkstationIDA string identifying the workstation. The default value is the name of your machine.

Oracle-specific options

OptionDescription
CharLengthThe size of characters in bytes for national language support. The range of allowed values is between 0 and 6. The default value is 0 — the actual character length is determined by an Oracle server.
CharsetThe character set for the character data transferred between the client and server. Supported with Oracle 8 client only.
ClientIdentifierThe client identifier in the session. The client identifier can be set in the session handle at any time in the session. Then, on the next request to the server, the information is propagated and stored in the server session. The first character of the ClientIdentifier must not be ‘:’. If it is, an exception will be raised. This property has no effect if you use the version of the server earlier than Oracle 9.
ConnectionTimeoutThe time to wait for a connection to open before raising an exception. Works only when Direct is set to True. The default value is 0.
ConnectModeThe system privilege for the user who connects to the server.

cmNormal
The default value. Connect as a normal user.

cmSysOper
Connect with the SYSOPER privilege.

cmSysDBA
Connect with the SYSDBA privilege.

cmSysASM
Connect with the SYSASM privilege.

cmSysBackup
Connect with the SysBackup privilege.

cmSysDG
Connect with the SysDG privilege.

cmSysKM
Connect with the SYSKM privilege.

The privilege must be granted to the user before connecting to the server. ConnectMode is not supported for OCI 7.
DateFormatThe default date format used when Oracle makes conversions from internal date format into string values and vice versa. An example of a valid expression is MM/DD/YYYY.
DateLanguageThe default language used when Oracle parses internal date format into strings and vice versa. Examples of valid expressions include FrenchGerman, etc.
DirectEnables the Direct mode. When True, connection is performed directly over TCP/IP, without involving Oracle client software. When False, the Oracle provider connects in the Client mode. The default value is False.
EnableIntegersRepresents Oracle NUMBER fields with precision less than 10. When True, fields are represented as TIntegerField. When False, fields are represented as TFloatField. The default value is True.
EnableLargeintRepresents Oracle NUMBER fields with precision more than 9 and less than 18. When True, fields are represented as TIntegerField. When False, fields are represented as TFloatField. The default value is False.
HomeNameSpecifies which Oracle client to use when two ore more Oracle clients are present on the machine. The Oracle provider searches for available homes in the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE registry folder. When the option is set to an empty string, the provider uses the first directory from the list of homes found in the PATH environment variable as the default Oracle home.
HttpPasswordThe password for the password-protected directory that contains the HTTP tunneling script.
HttpTrustServerCertificateSpecifies whether to verify the server certificate during an SSL handshake. When True, ODAC bypasses walking the certificate chain to verify the certificate. The default value is False.
HttpUrlThe URL of the PHP script for HTTP tunneling.
HttpUsernameThe username for the password-protected directory that contains the HTTP tunneling script.
IPVersionThe Internet Protocol Version.

ivIPBoth
Either Internet Protocol Version 6 (IPv6) or Version 4 (IPv4) is used.

ivIPv4
The default value. Internet Protocol Version 4 (IPv4) is used.

ivIPv6
Internet Protocol Version 6 (IPv6) is used.

Note: When the property is set to ivIPBoth, a connection attempt is made via IPv6 if it is enabled in the operating system. If the connection attempt fails, a new connection attempt is made via IPv4.
OptimizerModeThe default optimizer mode for the connection.

omDefault
The session optimizer mode remains unchanged.

omFirstRowsN
The optimizer chooses the execution plan that returns the first N rows as quickly as possible. If you use Oracle 9.0 or earlier, these options have the same effect as omFirstRows.

omFirstRows
This mode is retained for backward compatibility and plan stability. It optimizes for the best execution plan to return the first row as soon as possible.

omAllRows
The optimizer explicitly chooses the cost-based approach to optimize a statement block with a goal of best throughput (that is, minimum total resource consumption).

omChoose
The optimizer chooses between the rule-based and cost-based approaches for an SQL statement. The choice of the optimizer depends on the presence of statistics for the tables accessed by the statement: if the data dictionary has statistics for at least one of the tables, the optimizer uses the cost-based approach and optimizes with the goal of the best throughput. Otherwise, it uses the rule-based approach.

omRule
The optimizer chooses rule-based optimization (RBO). Any other value causes the optimizer to choose cost-based optimization (CBO). The rule-based optimizer is the archaic optimizer mode from the earliest releases of Oracle Database.
PoolingTypeThe connection pooling implementation.

optLocal
The default value. Our own connection pooling implementation.

optOCI
OCI connection pooling.

optMTS
Shared server (MTS) connection pooling.
PrecisionBCDRepresents Oracle NUMBER fields as TBCDField when their precision and scale are less than or equal to the precision and scale in PrecisionBCD, specified as two comma-separated values (BCD precision and scale). PrecisionBCD cannot be greater than 14,4. The default value is 14,4.
PrecisionFloatRepresents Oracle NUMBER fields as TFloatField when their precision is less than or equal to the precision in PrecisionFloat. The default value is 0.
PrecisionFMTBCDRepresents Oracle NUMBER fields as TFMTBCDField when their precision and scale are less than or equal to the precision and scale in PrecisionFMTBCD, specified as two comma-separated values (FMTBCD precision and scale). The default value is 39,39.
PrecisionIntegerRepresents Oracle NUMBER fields as TIntegerField when their precision is less than or equal to the precision in PrecisionInteger. The default value is 9.
PrecisionLargeintRepresents Oracle NUMBER fields as TLargeintField when their precision is less than or equal to the precision in PrecisionLargeint. The default value is 18.
PrecisionSmallintRepresents Oracle NUMBER fields as TSmallintField when their precision is less than or equal to the precision in PrecisionSmallint. The default value is 4.
ProxyHostnameThe proxy hostname or IP address.
ProxyPasswordThe proxy password.
ProxyPortThe proxy port.
ProxyUsernameThe proxy username.
SchemaChanges the current schema of the session to the specified schema. This option offers a convenient way to perform operations on objects in a schema other than that of the current user, without having to qualify the objects with the schema name. It changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session.
If TUniConnection.Connected is True, read this property to get the name of the current schema.
SSLCACertThe server CA certificate.
SSLCertThe client certificate.
SSLCipherListThe list of allowed SSL ciphers.
SSLServerCertDNThe server’s distinguished name (DN) to enable server DN matching. It checks whether the server is genuine by matching the server’s global database name against the DN from the server certificate.
StatementCacheEnables statement caching. The default value is False.
StatementCacheSizeThe size of statement cache. The default value is 20.
ThreadSafetyEnables the use of OCI in a multithreaded environment. This option must be set to True before any non-blocking fetch of rows or SQL statement execution takes place. The default value is True.
UnicodeEnvironmentEnables the use of OCI Unicode Environment. When True, Unicode characters can be used in SQL statements. Set the option to False if you encounter some issues with Unicode Environment. The default value is False.
UseOCI7Forces TUniConnection to use the OCI 7 call style only. The default value is False.
UseUnicodeEnables Unicode support. The option affects character data fetched from the server. When True, all character data is stored as WideString, and TStringField is replaced with TWideStringField. Supported starting with Oracle 8. The default value is False.

PostgreSQL-specific options

Option nameDescription
ApplicationNameThe name of a client application. The default value is the name of the executable file of your application.
CharsetSetups the character set which will be used to transfer character data between client and server.
ConnectionTimeoutThe time to wait for a connection to open before raising an exception.
HttpPasswordUse the HttpPassword option to specify the password for HTTP authorization.
HttpTrustServerCertificateThis option specifies whether or not the driver should trust the server certificate when connecting to the server. The default value is False – the driver won’t trust the server certificate and will verify validity of the server certificate instead. If set to True, the driver will trust the server certificate.
HttpUrlUse the HttpUrl option to specify the URL of the PHP tunneling script.
HttpUsernameUse the HttpUsername option to specify the username for HTTP authorization.
IPVersionUse the IPVersion property to specify Internet Protocol Version.

Supported values:

ivIPBoth
Specifies that either Internet Protocol Version 6 (IPv6) or Version 4 (IPv4) will be used.

ivIPv4 (default)
Specifies that Internet Protocol Version 4 (IPv4) will be used.

ivIPv6
Specifies that Internet Protocol Version 6 (IPv6) will be used.

Note: When the TIPVersion property is set to ivIPBoth, a connection attempt will be made via IPv6 if it is enabled on the operating system. If the connection attempt fails, a new connection attempt will be made via IPv4.
MessagesCharsetSpecifies the character set that will be used to transfer error messages from the server to the client.
MultipleConnectionsEnables or disables the creation of an additional internal connection for TUniQuery, when necessary. The default value is True.
ProtocolVersionSpecifies protocol version to be used when several versions are available.

Supported values:

pv20
Set ProtocolVersion to pv20 to work with PostgreSQL server version 7.3 or older that don’t support protocol version 3.0.

pv30
Set ProtocolVersion to pv30 to enforce protocol version 3.0.

pvAuto (default)
Set ProtocolVersion to pvAuto to automatically select between protocol versions depending on the specific query for the best possible performance.
ProxyHostnameUse the ProxyHostName option to specify the host name or IP address to connect to the proxy server.
ProxyPasswordUse the ProxyPassword option to specify the password for the proxy server.
ProxyPortUse the ProxyPort option to specify the port for a TCP/IP connection with the proxy server.
ProxyUsernameUse the ProxyUsername option to specify the username for the proxy server.
SchemaUse the Schema property to set the search path for the connection to the specified schema. This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name.
SSLCACertThe pathname to the certificate authority file.
SSLCertThe pathname to the certificate file.
SSLCipherListThe list of allowable ciphers to use for SSL encryption.
SSLKeyThe pathname to the key file.
SSLModeThis option determines whether or with what priority an SSL connection will be negotiated with the server.

Supported values:

smAllow
Negotiates trying first a non-SSL connection, then if that fails, tries an SSL connection.

smDisable (default)
Only an unencrypted SSL connection will be attempted.

smPrefer
Negotiates trying first an SSL connection, then if that fails, tries a regular non-SSL connection.

smRequire
Tries only an SSL connection.

smVerifyCA
Verifies server identity by validating the server certificate chain up to the root certificate installed on the client machine.

smVerifyFull
Verifies server identity by validating the server certificate chain up to the root certificate installed on the client machine and validates that the server hostname matches the server certificate.

Note: If PostgreSQL is compiled without SSL support, using option smRequire will cause an error, while options smAllow and smPrefer will be accepted, but PgDAC will not in fact attempt an SSL connection.
UseHttpThe UseHttp option enables the use of HTTP tunneling to connect to the server. The default value is False.
UseUnicodeEnables or disables Unicode support. Affects character data fetched from the server. When set to True, all character data is stored as WideStrings, and TStringField is replaced by TWideStringFiled.
UuidWithBracesUse the UuidWithBraces option to specify whether the values of UUID fields are returned with braces. The default value is True.

SQLite-specific options

OptionDescription
ASCIIDataBaseEnables or disables ASCII support. The default value is False.
Note: Set the UseUnicode option to False before enabling ASCII support.
BusyTimeoutSets the timeout in milliseconds for a locked resource (database or table). If the resource is not unlocked during this time, SQLite returns the SQLITE_BUSY error. The default value is 0.
CipherLicenseHolds a license key for SQLCipher Commercial Edition. Note that SQLCipher is not supported in the Direct mode.
ConnectModeThe connection mode.

cmDefault
The default value. The database is opened for reading and writing. Corresponds to the SQLite default behavior.

cmReadWrite
The database is opened for reading and writing.

cmReadOnly
The database is opened in read-only mode.

Note that the ForceCreateDatabase option can be used to enable the automatic creation of the database when it doesn’t already exist.
ClientLibraryUse the ClientLibrary option to set or get the location of the client library.
DateFormatThe format for storing dates in the database. If no format is specified, the default format yyyy-mm-dd is used. The default value is an empty string.
DefaultCollationsEnables or disables automatic default collations registration on connection establishing.
DirectWhen True, UniDAC connects to the database directly using the embedded SQLite3 engine, without the SQLite3 client library. The Direct mode also enables you to work with an encrypted database using the EncryptionAlgorithm and EncryptionKey options and the EncryptDatabase method.
EnableLoadExtensionEnables loading and using an SQLite extension:UniConnection.ExecSQL('SELECT load_extension(''C:\ext.dll'', ''sqlite3_ext_init'');');
EnableSharedCacheEnables or disables the SQLite shared-cache mode. The default value is False.
EncryptionAlgorithmUsed to specify the encryption algorithm for an encrypted database.
EncryptionKeyThis property is used for password input and for working with encrypted database. Password can be set or changed using EncryptDatabase method.
ForceCreateDatabaseForces TLiteConnection to create a new database before opening a connection, if the database doesn’t already exist.
ForeignKeysEnables or disables foreign keys constraints without explicitly executing the “PRAGMA foreign_keys = ON;” and “PRAGMA foreign_keys = OFF;” statements. The default value if True.
IntegerAsLargeIntMaps INT (INTEGER) columns to TLargeIntField fields. If True, INT (INTEGER) columns are mapped to TLargeIntField fields. If False, INT (INTEGER) columns are mapped to TIntegerField fields. The default value is False.
JournalModeThe journal mode.

jmDelete
The rollback journal is deleted at the conclusion of each transaction.

jmTruncate
The rollback journal is stored in volatile RAM. It reduces disk I/O, but decreases database safety and integrity. If the application using SQLite crashes in the middle of a transaction, the database file may become corrupt.

jmPersist
The rollback journal file is not deleted when the transaction is commited. The header of the journal is filled with zeroes to prevent other connections rolling back from the journal. This mode optimizes performance on platforms where deleting or truncating a file is much more expensive than overwriting the first block of a file with zeros.

jmMemory
The rollback journal is stored in volatile RAM. This reduces the disk I/O, but decreases database safety and integrity. If the application using SQLite crashes in the middle of a transaction in this mode, the database file is likely to become corrupt.

jmWAL
A write-ahead log is used instead of a rollback journal to implement transactions. When data database is updated, the original content is preserved in the database file and the changes are appended in a separate WAL file. All the transactions that are appended in the WAL file are eventually transferred back into the original database.

jmOff
The rollback journal is completely disabled. No rollback journal is created, thus there is no rollback journal to delete. The ROLLBACK command does not work — it behaves in an undefined way. Avoid using the ROLLBACK command when the journal mode is disabled.

jmDefault
The default value. If the database was previously opened in the WAL mode, then Default will open the database in the WAL mode; otherwise, the database will be opened in the Delete mode.
LockingModeThe database locking mode.

lmExclusive
The database connection never releases file locks. The first time the database is read or written in this mode, a shared lock is obtained and held. Use this mode if you want to prevent other processes from accessing the database file, reduce the number of filesystem operations, or access WAL databases without using the shared memory.

lmNormal
The database connection unlocks the database file at the conclusion of each read or write transaction.

Note: Keep the default LockingMode=lmExclusive and Synchronous=smOff for the best perfomance.
NativeDateIf the option is set to True, the date and time values will be stored in the database in the native SQLite format, and when retrieved, they will be converted to the TDateTime type. If set to False, no conversion to the TDateTime type will be made. The default value is True.
ReadUncommittedEnables or disables the Read Uncommitted isolation mode. A database connection in this mode doesn’t attempt to acquire a read lock on the table before reading from it. This can lead to inconsistent query results if another database connection modifies data in the table while it is being read, but it also means that a read transaction opened by a connection in the Read Uncommitted mode can neither block nor be blocked by another connection. The default value is False.
SynchronousThe database synchronization mode when writing to disk.

smOff
The database engine continues without syncing after handing data off to the operating system. If the application running SQLite crashes, the data will safe, unless the operating system crashes or the computer loses power before data has been written to disk, in which case the database might become corrupted. This is the fastest mode.

smNormal
The database engine still syncs at the most critical moments, but less often than in the FULL mode. The Normal mode is faster than the Full mode. When using the WAL mode (and probably the DELETE mode) with synchronous=NORMAL, data is safe from corruption. The synchronous=NORMAL setting is a reasonable choice for most applications running in the WAL mode.

smFull
The database engine ensures that all content is safely written to disk before continuing. This preserves database integrity even in case of an operating system failure or power outage. It is a safe, but slower mode, and is most commonly used when not in the WAL mode.

smExtra
This mode is similar to the FULL mode, but in the DELETE mode, the directory containing the rollback journal is synced after that journal is unlinked to commit a transaction. This provides additional durability if a power outage occurs right after the commit.

Note: Keep the default Synchronous=smOff and LockingMode=lmExclusive for the best perfomance.
TimeFormatThe format for storing time in the database. If no format is specified, the default format hh24:mi:ss will be used. The default value is an empty string.
UseUnicodeEnables or disables Unicode support. When set to True, all character data is stored as WideString, and TStringField is used instead of TWideStringField. The default value is False.

To top