EasyManua.ls Logo

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API - Page 75

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API
628 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Database connection functions 75
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.
000_DW_API_Print.book Page 75 Wednesday, July 20, 2005 11:58 AM

Table of Contents

Related product manuals