Contents Index CREATE PROCEDURE statement CREATE PUBLICATION statement

ASA SQL Reference
  SQL Statements

CREATE PROCEDURE statement [T-SQL]


Description 

Use this statement to create a new procedure in the database in a manner compatible with Adaptive Server Enterprise.

Syntax 1 

The following subset of the Transact-SQL CREATE PROCEDURE statement is supported in Adaptive Server Anywhere.

CREATE PROCEDURE [owner.]procedure_name
[ [ ( ] @parameter_name data-type [ = default ] [ OUTPUT ], ... [ ) ] ]
WITH RECOMPILE ] AS statement-list

Usage 

The following differences between Transact-SQL and Adaptive Server Anywhere statements (Watcom-SQL) are listed to help those writing in both dialects.

Permissions 

Must have RESOURCE authority.

Side effects 

Automatic commit.

See also 

CREATE PROCEDURE statement

Standards and compatibility 

Contents Index CREATE PROCEDURE statement CREATE PUBLICATION statement