Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections

 

Connection parameters

Connection parameters are included in connection strings. They can be entered in the following places:

Note
  • Connection parameters are case insensitive, although their values may not be (for example, file names on Unix).

  • Boolean parameters are turned on with YES, Y, ON, TRUE, T, or 1, and are turned off with any of NO, N, OFF, FALSE, F, and 0. The parameters are case insensitive.

  • The Usage for each connection parameter describes the circumstances under which the parameter is to be used. Common usage entries include the following:

    • Embedded databases   The personal database server (dbeng16) is typically used with embedded applications. When the application disconnects from the database, the database is unloaded and the server stops.

    • Local database servers   A local database server refers to a server running on your personal computer. You can use either the personal server (dbeng16) or the network server (dbsrv16).

    • Network database servers   A network server (dbsrv16) can be run on your personal computer or on another computer on a network. Use the network server when you want others to be able to connect to the database.

  • You can use the dbping utility to test connection strings. The -c option is used to specify the connection parameters. For example, suppose a database server with the name demo16 is running the sample database (which can be started with the command dbsrv16 -n demo16 "%SQLANYSAMP16%\demo.db"). The following command returns a message indicating that the connection to the database was successful.

    dbping -d -c "Server=demo16;DBN=demo;UID=DBA;PWD=sql"

    The following command returns the message Ping database failed - Database server not running if no database server named other-server is running on the local computer:

    dbping -c "Server=other-server"
 See also

AppInfo (APP) connection parameter
AutoStart (ASTART) connection parameter
AutoStop (ASTOP) connection parameter
CharSet (CS) connection parameter
CommBufferSize (CBSIZE) connection parameter
CommLinks (LINKS) connection parameter
Compress (COMP) connection parameter
CompressionThreshold (COMPTH) connection parameter
ConnectionName (CON) connection parameter
ConnectionPool (CPOOL) connection parameter
DatabaseFile (DBF) connection parameter
DatabaseKey (DBKEY) connection parameter
DatabaseName (DBN) connection parameter
DatabaseSwitches (DBS) connection parameter
DataSourceName (DSN) connection parameter
DisableMultiRowFetch (DMRF) connection parameter
Elevate connection parameter
EncryptedPassword (ENP) connection parameter
Encryption (ENC) connection parameter
EngineName (ENG) connection parameter (deprecated)
FileDataSourceName (FILEDSN) connection parameter
ForceStart (FORCE) connection parameter
Host connection parameter
Idle connection parameter
Integrated (INT) connection parameter
Kerberos (KRB) connection parameter
Language (LANG) connection parameter
LazyClose (LCLOSE) connection parameter
LivenessTimeout (LTO) connection parameter
LogFile (LOG) connection parameter
NewPassword (NEWPWD) connection parameter
MatView (MATVIEW) connection parameter
NodeType (NODE) connection parameter
Password (PWD) connection parameter
PrefetchBuffer (PBUF) connection parameter
PrefetchOnOpen connection parameter
PrefetchRows (PROWS) connection parameter
RetryConnectionTimeout (RetryConnTO) connection parameter
ServerName (Server) connection parameter
StartLine (START) connection parameter
Unconditional (UNC) connection parameter
Userid (UID) connection parameter