Asp.net Web form CURD Operation Using Store Procedure
Store Procedure Syntax:
CREATE { PROCEDURE | PROC } [schema_name.]procedure_name
[ @parameter [type_schema_name.] datatype
[ VARYING ] [ = default ] [ OUT | OUTPUT | READONLY ]
, @parameter [type_schema_name.] datatype
[ VARYING ] [ = default ] [ OUT | OUTPUT | READONLY ] ]
[ WITH { ENCRYPTION | RECOMPILE | EXECUTE AS Clause } ]
[ FOR REPLICATION ]
AS
BEGIN
[declaration_section]
executable_section
END;
- schema_name
- The name of the schema that owns the stored procedure.
- procedure_name
- The name to assign to this procedure in SQL Server.
- @parameter
- One or more parameters passed into the procedure.
- type_schema_name
- The schema that owns the data type, if applicable.
- datatype
- The data type for @parameter.
- VARYING
- It is specified for cursor parameters when the result set is an output parameter.
- default
- The default value to assign to @parameter.
- OUT
- It means that @parameter is an output parameter.
- OUTPUT
- It means that @parameter is an output parameter.
- READONLY
- It means that @parameter can not be overwritten by the stored procedure.
- ENCRYPTION
- It means that the source for the stored procedure will not be stored as plain text in the system views in SQL Server.
- RECOMPILE
- It means that a query plan will not be cached for this stored procedure.
- EXECUTE AS clause
- It sets the security context to execute the stored procedure.
- FOR REPLICATION
- It means that the stored procedure is executed only during replication.
Comments
Post a Comment