Thursday 18 February 2016

[JDBC] jTDS SQL Server JDBC Driver Properties

jTDS SQL Server JDBC Driver

Property NameDescriptionReqiredChoicesSample Value
PREPARESQLUse stored procedures for prepared statements.false
0
1
2
3
3
SERVERTYPEThe type of database (1 is SQL Server, 2 is Sybase).true
1
2
1
DATABASENAMEThe database name.falsemaster
XAEMULATIONSet to false to use the Microsoft Distributed Transaction Coordinator.false
true
false
true
PROGNAMEThe program name advertised by the driver.falsejTDS
LOGINTIMEOUTThe time to wait for a successful login before timing out.false0
MACADDRESSHex-encoded client MAC address.false000000000000
USEJCIFSForce use of jCIFS library on Windows for connecting via named pipes.falsefalse
SSLSet the SSL level.false
off
request
require
authenticate
off
PASSWORDThe database password.falsebtc0btc
LOBBUFFERThe amount of LOB data to buffer in memory before caching to disk.false32768
TCPNODELAYEnable/disable TCP_NODELAYfalse
true
false
true
LASTUPDATECOUNTReturn only the last update count on executeUpdate.false
true
false
true
CACHEMETADATASet to true to enable the caching of column meta data for prepared statements.false
true
false
false
SENDSTRINGPARAMETERSASUNICODEIf strings should be sent as unicode values.false
true
false
true
bufferMinPacketsThe minimum number of packets per statement to buffer to memory.false8
SOCKETKEEPALIVEUse TCP/IP socket keep alive feature.falsefalse
BUFFERDIRThe directory to buffer data to.falseC:\Users\ADMINI~1\AppData\Local\Temp
DOMAINThe domain used for authentication.false
INSTANCEThe database server instance.false
TDSThe database server protocol.false
4.2
5.0
7.0
8.0
8.0
WSIDWorkstation ID or client host name override. Will be stored in master.dbo.sysprocesses, column hostname.false
LOGFILESet the name of a file for the capture of logging information.false
bufferMaxMemoryThe global buffer memory limit for all connections (in kilobytes).false1024
BATCHSIZEThe number of statements to submit at once. Batches are broken up in pieces this large.false0
CHARSETServer character set for non-Unicode character values.false
SERVERNAMEThe database server hostname.true192.168.0.88
USECURSORSUse SQL Server fast forward only result sets for forward only result sets.false
true
false
false
BINDADDRESSThe IP address of the local interface that jTDS should bind to when connecting to a database via TCP/IP.false
PORTNUMBERThe database server port number.false1433
MAXSTATEMENTSThe maximum number of statements to keep open. This is only a target for the cache.false500
USELOBSMap large types (IMAGE and TEXT/NTEXT) to LOBs vs. String/byte[].false
true
false
true
APPNAMEThe application name advertised by the driver.falsejTDS
SOCKETTIMEOUTThe TCP/IP socket timeout value in seconds or 0 for no timeout.false0
USENTLMV2Set to true to send LMv2/NTLMv2 responses when using Windows authenticationfalsenull
LANGUAGEThe language for server messages.false
USERThe database user.falsesa
PACKETSIZEThe network packet size (a multiple of 512).false0
NAMEDPIPEUse named pipes to connect instead of TCP/IP sockets.false
true
false
false
PROCESSIDThe process ID reported by the driver.false123

No comments:

Post a Comment