beautypg.com

Mmdb.getdrivername(), Mmdb.getlocaldsnlist(), Mmdb.getpassword() – Adobe Dreamweaver API Reference CS5 User Manual

Page 64

background image

59

DREAMWEAVER API REFERENCE

The database API

Last updated 8/27/2013

MMDB.getDriverName()

Availability
Dreamweaver UltraDev 1.

Description
This function gets the driver name that is associated with the specified connection. Only a JDBC connection has a
driver name.

Arguments
connName

The connName argument is a connection name that is specified in the Connection Manager. It identifies the
connection string that Dreamweaver should use to make a database connection to a live data source.

Returns
A string that contains the driver name.

Example
The statement

MMDB.getDriverName ("EmpDB");

might return the following string:

"jdbc/oracle/driver/JdbcOracle"

MMDB.getLocalDsnList()

Availability
Dreamweaver UltraDev 4.

Description
This function gets ODBC DSNs that are defined on the user’s system.

Arguments
None.

Returns
An array that contains the ODBC DSNs that are defined on the user’s system.

MMDB.getPassword()

Availability
Dreamweaver UltraDev 1.

Description
This function gets the password that is used for the specified connection.