EasyManua.ls Logo

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API - Page 74

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...
74 The Database API
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 74 Wednesday, July 20, 2005 11:58 AM

Table of Contents

Related product manuals