User Guide

90 Chapter 7: The Database API
Returns
An object that contains the new values in the username and password properties. If either
property is not defined, it indicates that the user cancelled the dialog box.
MMDB.showRestrictDialog()
Availability
Dreamweaver UltraDev 4.
Description
This function displays the Restrict dialog box.
Arguments
catalog, schema
The catalog argument is the initial catalog value.
The schema argument is the initial schema value.
Returns
An object that contains the new values in the catalog and schema properties. If either property is
not defined, it indicates that the user cancelled the dialog box.
MMDB.testConnection()
Availability
Dreamweaver UltraDev 4.
Description
This function tests connection settings. It displays a modal dialog box that describes the results.
Arguments
serverPropertiesArray
This function expects a single argument, an array object that contains values from the following
list, which are appropriate for the current server model. For properties that do not apply to the
connection being tested, set them to empty (
"").
The type argument indicates, when useHTTP is a false value, which DLL to use for
connecting to a database at design time to test connection settings.
The string argument is the ADO connection string or JDBC URL.
The dsn argument is the data source name.
The driver argument is the JDBC driver.
The username argument is the user name.
The password argument is the password.
The useHTTP argument is a Boolean value. A value of true specifies that Dreamweaver should
use an HTTP connection at design time; otherwise, Dreamweaver uses a DLL.
Returns
A Boolean value: true if the connection test is successful; false otherwise.
000_DW_API_Print.book Page 90 Wednesday, August 20, 2003 9:14 AM