Using Stored Procedures To Modify Databases (Asp.net) - MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual

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

Advertisement

Using stored procedures to modify databases (ASP.NET)

You can use a stored procedure to modify a database. A stored procedure is a reusable database
item that performs some operation on the database.
Note: Microsoft Access and MySQL databases do not support stored procedures.
Before you use a stored procedure to modify a database, make sure the stored procedure contains
SQL that modifies the database in some way. To create and store one in your database, consult
your database documentation and a good Transact-SQL manual.
To add a stored procedure to an ASP.NET page:
In Dreamweaver, open the page that will run the stored procedure.
1
In the Bindings panel (Window > Bindings), click the Plus (+) button and select
2
Stored Procedure.
The Stored Procedure dialog box appears.
Complete the dialog box.
3
For more information, click the Help button in the dialog box.
Click OK.
4
After you close the dialog box, Dreamweaver inserts ASP.NET code in your page that, when run
on the server, executes a stored procedure in the database. The stored procedure in turn performs
a database operation, such as inserting a record or executing a query.
If the stored procedure takes parameters, you might 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.
Related topics
"Stored procedures" on page 632
700
Chapter 41: Building ASP.NET Applications Rapidly

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