![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference Download Page 81](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554081.webp)
Database connection functions
81
•
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
driver. You should pass the driver name to this
function to fully qualify the connection name you want to return.
Arguments
connString, {driverName}
•
The
connString
argument is the connection string that gets the connection name.
•
The
driverName
argument, which is optional, further qualifies the
connString
argument.
Returns
A connection name string that corresponds to the connection string.
Example
The following code returns the string
"EmpDB"
:
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
•
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.
000_DW_API_Print.book Page 81 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...