Adobe 38040334 - Dreamweaver CS3 User Manual page 74

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

Advertisement

MMDB.showSPResultset()
Availability
Dreamweaver UltraDev 1.
Description
This function displays a dialog box that contains the results of executing the specified stored procedure. The dialog
box displays a tabular grid in which the header provides column information that describes the result set. If the
connection string or the stored procedure is invalid, an error appears. This function validates the stored procedure.
Arguments
connName, procName, paramValuesArray
• The
argument is a connection name that is specified in the Connection Manager. It identifies the
connName
connection string that Dreamweaver should use to make a database connection to a live data source.
• The
argument is the name of the stored procedure to execute.
procName
• The
paramValuesArrayargument
parameter values in the order in which the stored procedure expects them. You can use the
function to get the parameters of the stored procedure.
sAsString()
Returns
This function returns an error if the SQL statement or the connection string is invalid; otherwise, it returns nothing.
Example
The following code displays the results of the executed stored procedure:
var paramValueArray = new Array("2/1/2000", "50000")
MMDB.showSPResultset("EmpDB", "getNewEmployeesMakingAtLeast", ¬
paramValueArray)
MMDB.showSPResultsetNamedParams()
Availability
Dreamweaver UltraDev 1.
Description
This function displays a dialog box that contains the result set of the specified stored procedure. The dialog box
displays a tabular grid in which the header provides column information that describes the result set. If the
connection string or the stored procedure is invalid, an error appears. This function validates the stored procedure.
This function differs from the
name instead of the order in which the stored procedure expects them.
Arguments
connName, procName, paramNameArray, paramValuesArray
• The
argument is a connection name that is specified in the Connection Manager. It identifies
connName
the connection string that Dreamweaver should use to make a database connection to a live data source.
• The
argument is the name of the stored procedure that returns the result set when it executes.
procName
• The
argument is an array that contains a list of parameter names. You can use the
paramNameArray
function to get the parameters of the stored procedure.
ParamsAsString()
is an array that contains a list of design-time parameter test values. Specify the
MMDB.showSPResultset()
function because you can specify the parameter values by
DREAMWEAVER CS3
API Reference
MMDB.getSPParam-
MMDB.getSP-
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents