database.connect()
NES2+Syntax
database.connect(dbType, dbInstance, uid, pwd, dbName) database.connect(dbType, dbInstance, uid, pwd, dbName, maxConn) database.connect(dbType, dbInstance, uid, pwd, dbName, maxConn, commitFlag)
Description
The connect method of the database object is the actual method that connects to a database given the parameters passed. Before you open a connection to a database and have the ability to run queries against it, you should create an instance of this object. Each parameter is defined in Table 8.7.
Parameter | Description |
---|---|
dbType | The type of database it is. Possible values are: ORACLE, SYBASE, INFORMIX, DB2, or ODBC. |
dbInstance | This is the instance name of the database. For ... |
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.