User Guide
Database connection functions 73
MMDB.getConnectionList()
Availability
Dreamweaver UltraDev 1.
Description
This function gets a list of all the connection strings that are defined in the Connection
Manager.
Arguments
None.
Returns
An array of strings where each string is the name of a connection as it appears in the
Connection Manager.
Example
A call to MMDB.getConnectionList() can return the strings ["EmpDB", "Test",
TestEmp"]
.
MMDB.getConnectionName()
Availability
Dreamweaver UltraDev 1.
Description
This function gets the connection name that corresponds to the specified connection string.
This function is useful when you need to reselect a connection name in the user interface (UI)
from data on the page.
If you have a connection string that references two drivers, you can specify the connection
string and the driver that corresponds to the connection name that you want to return. For
example, you can have two connections.
■ Connection 1 has the following properties:
ConnectionString="jdbc:inetdae:velcro-qa-5:1433?database=pubs"
DriverName="com.inet.tds.TdsDriver"
■ Connection 2 has the following properties:
ConnectionString="jdbc:inetdae:velcro-qa-5:1433?database=pubs"
DriverName="com.inet.tds.TdsDriver2"
000_DW_API_Print.book Page 73 Wednesday, July 20, 2005 11:58 AM