Adobe 38040334 - Dreamweaver CS3 User Manual page 65

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

Advertisement

• Stored procedures often require parameters. There are two ways of specifying parameter values for database access
functions. First, you can provide an array of parameter values (
parameter values, the values need to be in the sequence in which the stored procedure requires the parameters.
Second, you specify parameter values to provide an array of parameter names (
the
MMDB.getSPParamsAsString()
parameter names, the values that you specify in
names that you specify in
MMDB.getColumnAndTypeList()
Availability
Dreamweaver UltraDev 1.
Description
This function gets a list of columns and their types from an executed SQL
Arguments
connName, statement
• 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 SQL
statement
Returns
An array of strings that represents a list of columns (and their types) that match the
if the SQL statement is invalid or the connection cannot be made.
Example
The code
var columnArray = MMDB.getColumnAndTypeList("EmpDB","Select * from Employees")
the following array of strings:
columnArray[0] = "EmpName"
columnArray[1] = "varchar"
columnArray[2] = "EmpFirstName"
columnArray[3] = "varchar"
columnArray[4] = "Age"
columnArray[5] = "integer"
MMDB.getColumnList()
Availability
Dreamweaver UltraDev 1.
Description
This function gets a list of columns from an executed SQL
Arguments
connName, statement
• 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.
function to get the parameters of the stored procedure. If you provide
paramValuesArray
.
paramNameArray
statement to execute.
SELECT
paramValuesArray)
paramNameArray
must be in the sequence of the parameter
statement.
SELECT
SELECT
statement.
SELECT
DREAMWEAVER CS3
API Reference
. If you specify only
). You can use
statement, or an error
returns
60

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents