Stored Procedures
A stored procedure in SQL Server is a group of one or more Transact-SQL statements.
Types of Stored Procedures:
System-defined stored procedures
User-defined stored procedures
System-defined stored procedures
Stored Procedure | Description |
---|---|
sp_who | provides information about the current user, session, and processes in the current instance.
syntax: |
User-defined Stored Procedures
CREATE PROCEDURE
- used to create new stored procedures.
ALTER PROCEDURE
- used to alter existing stored procedures.
DROP PROCEDURE
- used to remove existing stored procedures.
EXECUTE
- used to execute existing stored procedures.
Last updated