Adobe 38040334 - Dreamweaver CS3 User Manual page 68

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

Advertisement

• The
argument is the name of the table for which you want to retrieve the set of columns that comprises
tableName
the primary key of that table.
Returns
An array of strings. The array contains one string for each column that comprises the primary key.
Example
The following example returns the primary key for the specified table.
var connName
= componentRec.parent.parent.parent.name;
var tableName
= componentRec.name;
var primaryKeys
= MMDB.getPrimaryKeys(connName,tableName);
MMDB.getProcedures()
Availability
Dreamweaver MX.
Description
This function returns an array of procedure objects that are associated with a named connection.
Arguments
connName
• 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.
Returns
An array of procedure objects where each procedure object has the following set of three properties:
Property Name
Description
a
Name of the schema that is associated with the object.
schema
This property identifies the user that is associated with the stored procedure in the SQL
database that the
function accesses depends on the type of connection.
For ODBC connections, the ODBC data source defines the database. The DSN is spec-
ified by the
getProcedures()
For OLE DB connections, the connection string names the database.
Name of the catalog that is associated with the object (owner qualifier).
catalog
The value of the
driver attribute defines a default
connection string does not specify a database.
Name of the procedure.
procedure
a. Dreamweaver connects to and gets all the tables in the database whenever you modify a recordset. If the database
has many tables, Dreamweaver might take a long time to retrieve them on certain systems. If your database contains
a schema or catalog, you can use the schema or catalog to restrict the number of database items Dreamweaver gets
at design time. You must first create a schema or catalog in your database application before you can apply it in
Dreamweaver. Consult your database documentation or your system administrator.
function accesses. The database that this
getProcedures()
dsn
property in the connection object (
function.
property is defined by an attribute of the OLE DB driver. This
catalog
user.database
) that you pass to the
property to use when the OLE DB
DREAMWEAVER CS3
63
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents