Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Vista

Dreamweaver CS5 : Standard Server Behaviors (part 6) - Stored procedure/command/callable

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/12/2012 6:13:24 PM

13. Stored procedure/command/callable

Many advanced Web applications use a stored procedure application object. Stored procedures are known under a variety of names: ASP users call them commands, whereas JSP developers know them as callables; only ColdFusion users refer to them solely as stored procedures. Stored procedures are complete SQL queries that may return recordsets or other data. Stored procedures are often used for complex data source management such as inserting new tables on-the-fly.

Stored procedures are created and compiled in the data source itself, such as Microsoft's SQL Server. Because they are precompiled, they execute faster than similar SQL statements entered directly into the Web application. Stored procedures, like recordsets, can be defined as a data source through either the Bindings panel or the Server Behaviors panel.

To define a stored procedure as a data source through the Server Behaviors panel, follow these steps:

  1. From the Server Behaviors panel, click the Add (+) button and, depending on your server model: for ASP, choose Command (Stored Procedure); for ColdFusion, choose Stored Procedure. The stored procedure dialog box for the appropriate server model is displayed; for example, Figure 20 shows the Command dialog box seen by ASP users.

    Figure 20. Stored procedures must be included in the data source before they can be added as a data source in Dreamweaver.

    NOTE

    Stored procedures and the variables necessary to use them are database- and server model–dependent. A stored procedure on SQL server is completely different from a ColdFusion stored procedure or another SQL-type database. The Stored Procedure/Command/Callable dialog box may change based on the type of database to which you're connecting, as well as the server model.

  2. In the Command/Callable/Stored Procedure field, enter a unique name.

  3. From the Connection list, choose the connection in which this stored procedure may be found.

  4. ASP users should choose Stored Procedure from the Type list.

    NOTE

    The ASP Command (Stored Procedure) server behavior includes additional types: Insert, Update, and Delete. These work identically to the Prepared (Insert/Update/Delete) server behavior.

  5. If the stored procedure returns a recordset, choose the Return Recordset option and enter a name in the Returned Recordset Named field.

  6. From the Database Items area, expand the Stored Procedures list and choose the desired stored procedure. It's a good idea to click Test to be sure your connection is working properly at this point.

  7. To modify the stored procedure, select any other element in the Database Items area and click the Procedure or Where button.

  8. Enter any necessary variables by clicking the Add (+) button in the Variables area and entering the values under each column: Name, Type, Direction, Size, Default Value, and Runtime Value.

  9. Click OK when you're finished.

Other -----------------
- Dreamweaver CS5 : Standard Server Behaviors (part 4) - Update Record, Delete Record & User authentication
- Dreamweaver CS5 : Standard Server Behaviors (part 3) - Go To Detail Page, Related Page & Insert Record
- Dreamweaver CS5 : Standard Server Behaviors (part 2) - Recordset Paging, Move To Specific Record & Show Region
- Dreamweaver CS5 : Standard Server Behaviors (part 1) - Recordset & Repeat Region
- CorelDRAW X5 : Text and Styles
- CorelDRAW X5 : Wrapping Text Around Other Shapes
- Adobe Illustrator CS5 : Working with Layers - Flattening Layers & Locating Objects in the Layers Panel
- Adobe Illustrator CS5 : Working with Layers - Moving Objects to a Layer
- Adobe Photoshop CS5 : The Essential Adjustments: White Balance
- Adobe Photoshop CS5 : Miss the JPEG Look? Try Applying a Camera Profile
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server