Adobe 38040334 API Reference - Page 56
MMDB.getDriverName, MMDB.getDriverUrlTemplateList deprecated
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 56 highlights
DREAMWEAVER CS3 51 API Reference • 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 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 can return: "dsn=EmpDB;uid=;pwd="; • For a JDBC connection, the following string can return: "jdbc:inetdae:192.168.64.49:1433?database=pubs&user=JoeUser&¬ password=joesSecret" 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.getDriverUrlTemplateList() (deprecated) 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, which is located in the Configuration/Connections folder. Each driver has an associated URL template. This function returns the list of JDBC drivers. For Dreamweaver MX (or later), 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:
![](/manual_guide/products/adobe-38040334-api-reference-b593776/56.png)