Specifications

Chapter 27316
Returns
A connection string that corresponds to the named connection.
Example
The code var connectionString = MMDB.getConnectionString ("EmpDB") returns different
strings for an ADO or JDBC connection.
For an ADO connection, the following string could be returned:
"dsn=EmpDB;uid=;pwd=";
For a JDBC connection, the following string could be returned:
"jdbc:inetdae:192.168.64.49:1433?database=pubs&user=JoeUser&¬
password=joesSecret"
MMDB.getDriverName()
Availability
Dreamweaver UltraDev 1
Description
Gets the driver name that is associated with the specified connection. Only a JDBC connection
has a driver name.
Arguments
connName
connName 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.getDriverUrlTemplateList()
Availability
Dreamweaver UltraDev 4, deprecated in Dreamweaver MX.
Note: For Dreamweaver UltraDev 4, the list of JDBC drivers are stored in the connections.xml file located in the
Configuration/Connections folder. Each driver has an associated URL template. This funtion returns the list of
JDBC drivers.
For Dreamweaver MX, these drivers and URL templates are hard-coded in the JDBC dialog
boxes. In addition, this function is an empty function definition to eliminate undefined-function
errors. The following example shows how a JDBC driver and URL template are hard-coded:
var DEFAULT_DRIVER = "COM.ibm.db2.jdbc.app.DB2Driver";
var DEFAULT_TEMPLATE = "jdbc:db2:[database name]";
For Dreamweaver MX, there is a dialog box for each driver/URL template pair.