Adobe 38040334 - Dreamweaver CS3 User Manual page 55

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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"
The connection strings for Connection 1 and Connection 2 are the same. Connection 2 connects to a more recent
version of the
TdsDriver
name you want to return.
Arguments
connString, {driverName}
• The
argument is the connection string that gets the connection name.
connString
• The
argument, which is optional, further qualifies the
driverName
Returns
A connection name string that corresponds to the connection string.
Example
The following code returns the string
var connectionName = MMDB.getConnectionName ¬
("dsn=EmpDB;uid=;pwd=");
MMDB.getConnectionString()
Availability
Dreamweaver UltraDev 1.
Description
This function gets the connection string that is associated with the named connection.
Arguments
connName
driver. You should pass the driver name to this function to fully qualify the connection
:
"EmpDB"
argument.
connString
DREAMWEAVER CS3
50
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents