Home >> FAQs/Tutorials >> SQL Server FAQ
SQL Server FAQ - What Are Stored Procedures
(Continued from previous topic...)
What Are Stored Procedures?
A stored procedure is a collection of Transact-SQL statements that stored in the SQL Server.
A stored procedure can be executed later with an EXEC statement.
SQL Server supports stored procedures with the following features:
1. Stored procedures can be divided into 3 groups based their accessing scopes:
- Permanent Procedures - Created for permanent use.
- Global Temporary Procedures - Created for temporary use within all sessions.
- Local Temporary Procedures - Created for temporary use within the same session.
2. Stored procedures can take input parameters.
3. Stored procedures can take output parameters.
4. Stored procedures can be mapped to references to
Microsoft .NET Framework common language runtime (CLR) methods.
(Continued on next topic...)
- What Are Stored Procedures?
- How To Create a Simple Stored Procedure?
- How To Execute a Stored Procedure?
- How To List All Stored Procedures in the Current Database?
- How To Drop an Existing Stored Procedure?
- How To Create a Stored Procedure with a Statement Block?
- How To End a Stored Procedure Properly?
- How To Generate CREATE PROCEDURE Script on an Existing Stored Procedure?
- How To Get the Definition of a Stored Procedure Back?
- How To Modify an Existing Stored Procedure?
- How To Create Stored Procedures with Parameters?
- How To Provide Values to Stored Procedure Parameters?
- What Are the Advantages of Passing Name-Value Pairs as Parameters?
- Can You Pass Expressions to Stored Procedure Parameters?
- How To Provide Default Values to Stored Procedure Parameters?
- How To Define Output Parameters in Stored Procedures?
- How To Receive Output Values from Stored Procedures?
- How To Create a Local Temporary Stored Procedure?
- Can Another User Execute Your Local Temporary Stored Procedures?