Executing procedures remotely  Return status

Chapter 16: Using Stored Procedures

Returning information from stored procedures

Stored procedures can return the following types of information:

Return status and return parameters allow you to modularize your stored procedures. A set of SQL statements that are used by several stored procedures can be created as a single procedure that returns its execution status or the values of its parameters to the calling procedure. For example, many Adaptive Server system procedures execute a procedure that verifies that certain parameters are valid identifiers.

Remote procedure calls, which are stored procedures that run on a remote Adaptive Server, also return both kinds of information. All the examples below can be executed remotely if the syntax of the execute statement includes the server, database, and owner names, as well as the procedure name.





Copyright © 2005. Sybase Inc. All rights reserved. Return status

View this book as PDF