Adobe 38040334 - Dreamweaver CS3 User Manual page 70

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

Advertisement

MMDB.getSPColumnListNamedParams()
Availability
Dreamweaver UltraDev 1.
Description
This function gets a list of result set columns that are generated by a call to the specified stored procedure.
Arguments
connName, statement, 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.
statement
• 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()
• The
paramValuesArray
specify if the procedure requires parameters when it executes. If you have provided parameter names in
, specify the parameter values in the same order that their corresponding parameter names appear in
NameArray
. If you did not provide
paramNameArray
procedure expects them.
Returns
An array of strings that represents the list of columns. This function returns an error if the SQL statement or the
connection string is invalid.
Example
The following code can return a list of result set columns that are generated from the executed stored procedure,
getNewEmployeesMakingAtLeast
var paramNameArray = new Array("startDate", "salary")
var paramValueArray = new Array("2/1/2000", "50000")
var columnArray = MMDB.getSPColumnListNamedParams("EmpDB", ¬
"getNewEmployeesMakingAtLeast", paramNameArray, paramValueArray)
The following values return:
columnArray[0] = "EmpID", columnArray[1] = "LastName",¬
columnArray[2] ="startDate", columnArray[3] = "salary"
MMDB.getSPParameters()
Availability
Dreamweaver MX.
Description
This function returns an array of parameter objects for a named procedure.
Arguments
connName, procName
argument is an array that contains a list of design-time parameter test values. You can
paramNameArray
:
, specify the values in the order in which the stored
DREAMWEAVER CS3
65
API Reference
MMDB.getSP-
param-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents