Connection property descriptions
- Last Updated: February 20, 2025
- 2 minute read
- DataDirect Connectors
- JDBC
- Microsoft SQL Server 6.0
- Documentation
You can use connection properties to customize the driver for your
environment. This section organizes connection properties according to
functionality. You can use connection properties with either the JDBC DriverManager or a JDBC data source. For a DriverManager connection, a property is expressed as a
key value pair and takes the form property=value. For a data source connection, a property is
expressed as a JDBC method and takes the form setproperty(value).
- In a JDBC data source, string values must be enclosed in double quotation
marks, for example,
setUser("abc@defcorp.com"). - The data type listed for each connection property is the Java data type used for the property value in a JDBC data source.
- Connection property names are case-insensitive. For example,
Passwordis the same aspassword. - For connection properties that support string values, use the following
escape sequence to specify values containing leading or trailing spaces and
curly brackets:
{value}. For example:User={hello }orPassword={{hello}}.
The following tables describe the connection properties by functionality.
Required properties
The following table summarizes properties required for connecting.
| Property | Data Source Method | Default |
|---|---|---|
| PortNumber | getPortNumber()
|
1433 |
| ServerName | getServerName()
|
None |
Authentication properties
The following table summarizes properties required for authentication.
| Property | Data Source Method | Default |
|---|---|---|
| AccessToken | getAccessToken()
|
None |
| ActiveDirectoryPrincipalID | getActiveDirectoryPrincipalID()
|
Empty string |
| ActiveDirectoryPrincipalSecret | getActiveDirectoryPrincipalSecret()
|
Empty string |
| AuthenticationMethod | getAuthenticationMethod()
|
auto |
| Domain | getDomain()
|
None |
| GSSCredential | getGSSCredential()
|
Null |
| LoginConfigName | getLoginConfigName()
|
|
| Password | getPassword()
|
None |
| ServicePrincipalName | getServicePrincipalName()
|
Driver builds value based on environment |
| User | getUser()
|
None |
Data encryption properties
The following table summarizes properties required for encrypting data.
| Property | Data Source Method | Default |
|---|---|---|
| CryptoProtocolVersion | getCryptoProtocolVersion()
|
None |
| EncryptionMethod | getEncryptionMethod()
|
noEncryption |
| HostNameInCertificate | getHostNameInCertificate()
|
Empty string |
| TrustStore | getTrustStore()
|
None |
| TrustStorePassword | getTrustStorePassword()
|
None |
| ValidateServerCertificate | getValidateServerCertificate()
|
true |
Failover properties
The following table summarizes properties which can be used to implement failover.
| Property | Data Source Method | Default |
|---|---|---|
| AlternateServers | getAlternateServers()
|
None |
| ConnectionRetryCount | getConnectionRetryCount()
|
5 |
| ConnectionRetryDelay | getConnectionRetryDelay()
|
1 (second) |
| FailoverGranularity | getFailoverGranularity()
|
nonAtomic |
| FailoverMode | getFailoverMode()
|
connect |
| FailoverPreconnect | getFailoverPreconnect()
|
false |
| LoadBalancing | getLoadBalancing()
|
false |
| MultiSubnetFailover | getMultiSubnetFailover()
|
false |
Bulk load properties
The following table summarizes properties used to configure bulk operations.
| Property | Data Source Method | Default |
|---|---|---|
| BulkLoadBatchSize | getBulkLoadBatchSize()
|
|
| BulkLoadOptions | getBulkLoadOptions()
|
|
| EnableBulkLoad | getEnableBulkLoad()
|
false
|
Proxy server properties
The following table summarizes properties used for proxy server connections.
| Property | Data Source Method | Default |
|---|---|---|
| ProxyHost | getProxyHost()
|
None |
| ProxyPassword | getProxyPassword()
|
None |
| ProxyPort | getProxyPort()
|
0 which means that the
default value is determined by whether the value specified for the
ProxyHost property is an HTTP or HTTPS URL.For
HTTP: For HTTPS: |
| ProxyUser | getProxyUser()
|
None |
Data type properties
The following table summarizes properties which can be used to handle data types.
| Property | Data Source Method | Default |
|---|---|---|
| ConvertNull | getConvertNull()
|
1 (data type check is performed if
column value is null) |
| DateTimeInputParameterType | getDateTimeInputParameterType()
|
auto |
| DateTimeOutputParameterType | getDateTimeOutputParameterType()
|
auto
|
| DescribeInputParameters | getDescribeInputParameters()
|
noDescribe
|
| DescribeOutputParameters | getDescribeOutputParameters()
|
noDescribe
|
| FetchTSWTZAsTimestamp | getFetchTSWTZAsTimestamp()
|
false |
| FetchTWFSasTime | getFetchTWFSasTime()
|
false
|
| JavaDoubleToString | getDateTimeOutputParameterType()
|
false |
| JDBCBehavior | getJDBCBehavior()
|
1 |
| XMLDescribeType | getXMLDescribeType()
|
None |
Timeout properties
The following table summarizes timeout connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| EnableCancelTimeout | getEnableCancelTimeout()
|
false |
| LoginTimeout | getLoginTimeout()
|
0 |
| QueryTimeout | getQueryTimeout()
|
0 |
Statement pooling properties
The following table summarizes the statement pooling connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| ImportStatementPool | getImportStatementPool()
|
None |
| MaxPooledStatements | getMaxPooledStatements()
|
0 |
| RegisterStatementPoolMonitorMBean | getRegisterStatementPoolMonitorMBean()
|
false |
Client information properties
The following table summarizes the connection properties which can be used to return client information.
| Property | Data Source Method | Default |
|---|---|---|
| AccountingInfo | getAccountingInfo()
|
None |
| ApplicationName | getApplicationName()
|
None |
| ClientHostName | getClientHostName()
|
None |
| ClientUser | getClientUser()
|
None |
| NetAddress | getNetAddress()
|
000000000000 |
| ProgramID | getProgramID()
|
None |
Always encrypted properties
The following table summarizes the connection properties related to Always Encrypted functionality.
| Property | Data Source Method | Default |
|---|---|---|
| AEKeyCacheTTL | getAEKeyCacheTTL()
|
7200 |
| ColumnEncryption | getColumnEncryption()
|
Disabled |
| AEKeystoreClientSecret | getAEKeystoreClientSecret()
|
None |
| AEKeystorePrincipalId | getAEKeystorePrincipalId()
|
None |
| AEKeystoreLocation | getAEKeystoreLocation()
|
None |
| AEKeystoreSecret | getAEKeystoreSecret()
|
None |
Additional properties
The following table summarizes additional connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| AlwaysReportTriggerResults | getAlwaysReportTriggerResults()
|
false |
| ApplicationIntent | getApplicationIntent()
|
ReadWrite |
| CatalogOptions | getCatalogOptions()
|
0 |
| CodePageOverride | getCodePageOverride()
|
None |
| DatabaseName | getDatabaseName()
|
None |
| EnableReplicationUser | getEnableReplicationUser()
|
false (Disabled) |
| InitializationString | getInitializationString()
|
None |
| InsensitiveResultSetBufferSize | getInsensitiveResultSetBufferSize()
|
2048 KB |
| LongDataCacheSize | getLongDataCacheSize()
|
2048 |
| PacketSize | getPacketSize()
|
-1 |
| ResultSetMetaDataOptions | getResultSetMetaDataOptions()
|
0 |
| SelectMethod | getSelectMethod()
|
direct |
| SnapshotSerializable | getSnapshotSerializable()
|
false |
| SpyAttributes | getSpyAttributes()
|
None |
| SuppressConnectionWarnings | getSuppressConnectionWarnings()
|
false |
| TransactionMode | getTransactionMode()
|
implicit |
| TruncateFractionalSeconds | getTruncateFractionalSeconds()
|
true |
| UseServerSideUpdatableCursors | getUseServerSideUpdatableCursors()
|
false |
| XATransactionGroup | getXATransactionGroup()
|
None |