MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 716

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

After you close the Callable (Stored Procedure) dialog box, Dreamweaver inserts JSP code in your
page that, when run on the server, calls a stored procedure in the database. The stored procedure
in turn performs a database operation, such as inserting a record.
If the stored procedure takes parameters, you can create a page that gathers the parameter values
and submits them to the page with the stored procedure. For example, you may create a page that
uses URL parameters or an HTML form to gather parameter values from users.
Using ASP commands to modify a database
You can use Dreamweaver to create ASP command objects that insert, update, or delete records in
a database. A command object is a server object that performs some operation on a database. You
supply the command object with the SQL statement that performs the operation on the database.
For more information, see
You can also supply the object with a stored procedure that performs the operation. For more
information, see
To create the command object that uses SQL to edit a database:
In Dreamweaver, open the ASP page that will run the command.
1
Open the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and
2
select Command.
The Command dialog box appears.
Enter a name for the command, select a connection to the database containing the records you
3
want to edit, and select the editing operation you want the command to perform—Insert,
Update, or Delete.
Dreamweaver starts the SQL statement for you based on the type of operation you select. For
example, if you select Insert, the dialog looks as follows:
716
Chapter 42: Building ASP and JSP Applications Rapidly
"ASP command objects" on page
"Running a stored procedure (ASP)" on page
633.
715.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents