CREATE PROCEDURE |
Crée une procédure |
---|---|
Microsoft SQL Server |
Syntaxe
CREATE { PROC | PROCEDURE } [schema_name.] procedure_name [ ; number ] [ { @parameter [ type_schema_name. ] data_type } [ VARYING ] [ = default ] [ OUT | OUTPUT | [READONLY] ] [ ,...n ] [ WITH procedure_option [ ,...n ] ] [ FOR REPLICATION ] AS { [ BEGIN ] sql_statement [;] [ ...n ] [ END ] } [;] procedure_option ::= [ ENCRYPTION ] [ RECOMPILE ] [ EXECUTE AS Clause ] |
Syntaxe Transact-SQL pour les procédures STORED dans SQL Server |
CREATE { PROC | PROCEDURE } [schema_name.] procedure_name [ ; number ] [ { @parameter [ type_schema_name. ] data_type } [ = default ] [ OUT | OUTPUT ] [READONLY] ] [ ,...n ] [ WITH EXECUTE AS Clause ] AS { EXTERNAL NAME assembly_name.class_name.method_name } [;] |
-Syntaxe Transact-SQL pour les procédures STORED de CLR |
CREATE { PROC | PROCEDURE } [schema_name.] procedure_name [ { @parameter data_type } [ NULL | NOT NULL ] [ = default ] [ OUT | OUTPUT ] [READONLY] ] [ ,... n ] WITH NATIVE_COMPILATION, SCHEMABINDING [ , EXECUTE AS clause ] AS { BEGIN ATOMIC WITH (set_option [ ,... n ] ) sql_statement [;] [ ... n ] [ END ] } [;] set_option ::= LANGUAGE = [ N ] 'language' | TRANSACTION ISOLATION LEVEL = { SNAPSHOT | REPEATABLE READ | SERIALIZABLE } | [ DATEFIRST = number ] | [ DATEFORMAT = format ] | [ DELAYED_DURABILITY = { OFF | ON } ] |
Syntaxe Transact-SQL pour les procédures STORED compilées en mode natif |
Description
Cette instruction permet de créer une Transact-SQL ou une procédure STORED dans le CLR (Common Language Runtime) du SQL Server.
Dernière mise à jour : Vendredi, le 19 Juin 2020