database.toString()

NES2+, ECMAScript1.0+Syntax

							database.toString()

Description

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

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

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

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

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.