Define SQL Server Stored Procedures

A stored procedure is a pre-compiled collection of SQL statements that are stored under a name and processed as a unit. The SQL Server Stored Procedure Editor simplifies the management of database-level and table-level stored procedures. The Code type determines if the stored procedure is intended to be a single procedure, generated for the entire database, or a set of procedures, generated once for each associated table.

The order in which you generate stored procedures to your database is important. The stored procedure code is generated according to the order in the SQL Server Stored Procedures Editor.

To define SQL server stored procedures

  1. Click Stored Procedures on the Database menu.

    The SQL Server Stored Procedure Editor opens.

  2. Select the stored procedure in the Navigation Grid that you want to define and work with the following options:

    Note: Click New <New> icon in property editors on the toolbar to create a new stored procedure.

  3. Click the General tab and work with the following options:
  4. Work with the other tabs in the editor to access additional design features, for example:
  5. (Optional) Click the Comment tab and enter any comments that you want to associate with the stored procedure.
  6. (Optional) Click the UDP tab to work with user-defined properties for the stored procedure.
  7. Click Close.

    The stored procedure is defined and the SQL Server Stored Procedure Editor closes.

More information:

SQL Server Physical Property Editors

Define the Code Type for an Object in a SQL Server Property Editor

View Expanded Code in a Property Editor

Change the Object Creation Order in a Property Editor

Define Permissions for an Object in a SQL Server Property Editor

Add a Comment in a Property Editor

Add a UDP in a Physical Property Editor

SQL Server Browser for Functions, Script Templates, and Stored Procedures


Copyright © 2009 CA. All rights reserved. Email CA about this topic