13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RDBMS Stored Procedure Details<br />

Run Stored-Procedure details<br />

3–6<br />

This section provides:<br />

• A complete, detailed reference <strong>for</strong> all the syntax expressions and options you can use to<br />

define the RUN STORED-PROCEDURE and the associated language elements that comprise a<br />

stored procedure definition.<br />

• Syntax to use the RUN STORED-PROCEDURE statement with and without the<br />

LOAD-RESULT-INTO phrase.<br />

• Detailed in<strong>for</strong>mation about using the RUN STORED-PROCEDURE statement with the send-sql<br />

option. Examples to use the RUN STORED-PROCEDURE statement with and without the<br />

LOAD-RESULT-INTO phrase are provided.<br />

Complete syntax reference <strong>for</strong> Run Stored-Procedure<br />

The following syntax shows the RUN STORED-PROC statement and all options that can be used<br />

with the statement:<br />

Syntax<br />

RUN STORED-PROCEDURE procedure-name<br />

[[LOAD-RESULT-INTO [ = PROC-STATUS]] |<br />

[ = PROC-HANDLE]]<br />

[ NO-ERROR ]<br />

However, keep in mind that not all options shown can be used simultaneously.<br />

Note: In the RUN STORED-PROCEDURE syntax, note that the is either a pure handle<br />

or a handle that points to a temp-table. For more in<strong>for</strong>mation about the use of<br />

temp-table handle with the LOAD-RESULT-INTO phrase, see the<br />

“LOAD-RESULT-INTO phrase” section on page 3–7.<br />

Syntax<br />

[([INPUT|OUTPUT|INPUT OUTPUT] [PARAM parameter-name =]expression, ...<br />

[INPUT|OUTPUT|INPUT OUTPUT] [PARAM parameter-name =]expression )]<br />

CLOSE STORED-PROCEDURE procedure-name<br />

[ integer-field = PROC-STATUS ]<br />

[ WHERE PROC-HANDLE = integer-field ]<br />

The CLOSE STORED-PROCEDURE is not used when the LOAD-RESULT-INTO keyword is used with<br />

the RUN-STORED-PROCEDURE statement. See the “Closed Stored-Procedure statement” section on<br />

page 3–9.<br />

For valid combinations and usage of these syntax elements see the:<br />

• “Run Stored-Proc statement execution without the LOAD-RESULT-INTO phrase”<br />

section on page 3–10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!