Running a Stored Procedure

You can run a stored procedure without invoking a launch configuration. Running a stored procedure allows you to run and obtain SQL results from the database.

Prerequisites 

Before you can run a stored procedure, save or deploy it to a database. If procedural objects are modified in an editor, a dialog displays to prompt you to save to the database before running.

  1. In the Databases folder in Enterprise Explorer, under the database connection profile, expand the navigation tree for the appropriate database and schema owner.
    Database Steps
    From an ASE connection profile
    1. Expand the Databases folder.
    2. Expand the tree for a database and then the tree for the appropriate schema owner.
    From a SQL Anywhere or Sybase IQ connection profile
    1. Expand the tree for a database.
    2. Expand the Schemas folder and then the tree for the appropriate schema owner.
  2. Expand the Stored Procedures folder, right-click the stored procedure, and choose Run.
  3. (Optional) If the stored procedure includes parameters, modify the parameter values.
  4. Click OK to run the procedure.

    SQL Results view displays the status of the run instance, the execution details, and returns result sets and server messages, if any.

Related concepts
Run Overview
Related tasks
Creating a Launch Configuration for Procedural Objects
Running a Trigger
Running a SQL Anywhere or Sybase IQ User-Defined Function
Running a SQL Anywhere or Sybase IQ Event
Executing a SQL File
Viewing SQL Results
Running a Procedural Object
Running a Procedural Object Using a Launch Configuration
Creating a Launch Configuration for Procedural Objects
Running a Trigger
Running a SQL Anywhere or Sybase IQ Event

For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com