Connection.toString()

NES3+, ECMAScript1.0+Syntax

							connection.toString()

Description

The toString() method of the Connection object returns a text value of the object. When invoked on an instance of a Connection object, the string is returned in the following format:

"dbName" "uid" "dbType" "dbInstance"

If parameter is unknown, an empty string is returned. Table 8.4 contains the value of these returned values.

Table 8.4. Return Values of the toString() Method
MethodDescription
dbNameThe name of the database you want to log into. For Oracle, DB2, and ODBC connections this is a blank (""), string. In Oracle, the name of the database for these connections is set up in the tnsnames.ora file and is defined by the DSN for ODBC connections. DB2 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.