About 788,000 results
Open links in new tab
  1. CREATE PROCEDURE (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · Creates a Transact-SQL or common language runtime (CLR) stored procedure in SQL Server, Azure SQL Database, and Analytics Platform System (PDW). Stored procedures are similar to procedures in other programming languages in that they can:

  2. SQL Stored Procedures for SQL Server - W3Schools

    The following SQL statement creates a stored procedure that selects Customers from a particular City from the "Customers" table: Example CREATE PROCEDURE SelectAllCustomers @City nvarchar(30)

  3. SQL Server: how to create a stored procedure - Stack Overflow

    Nov 13, 2013 · Every answer are good, but I strongly recommend aways to use the schema identifier to create any SQL object, for example: CREATE PROCEDURE dbo.spu_MyProcedure (@Param 1 INT, @Param2 INT OUTPUT) In the example, "dbo".

  4. SQL Server stored procedures for beginners - SQL Shack

    Jul 29, 2019 · In this article, we will learn how to create stored procedures in SQL Server with different examples. SQL Server stored procedure is a batch of statements grouped as a logical unit and stored in the database.

  5. How to Create and Call a Stored Procedure in SQL?

    Oct 25, 2021 · With this article, we will learn how to Create and Call a Stored Procedure in SQL. For this article, we are going to use MSSQL as our database server. What is a Stored Procedure? A stored procedure is a pre-written SQL query that …

  6. SQL Stored Procedures Getting Started Guide - MSSQLTips.com

    Oct 4, 2022 · In this tutorial, you will learn what a Stored Procedure is, how to create a Stored Procedure, and how to implement a Stored Procedure. We will also cover Stored Procedure parameters, both input and output, as well as Stored Procedures with multiple parameters.

  7. A Basic Guide to SQL Server Stored Procedures - SQL Server

    This tutorial shows you how to manage stored procedures in SQL Server including creating, executing, modifying, and deleting stored procedures.

  8. SQL Server Stored Procedures: Create, Alter, Rename, Execute

    In SQL Server, a stored procedure is a set of T-SQL statements which is compiled and stored in the database. The stored procedure accepts input and output parameters, executes the SQL statements, and returns a result set if any.

  9. SQL Server: Procedures - TechOnTheNet

    Learn how to create and drop procedures in SQL Server (Transact-SQL) with syntax and examples. What is a procedure in SQL Server? In SQL Server, a procedure is a stored program that you can pass parameters into. It does not return a value like a function does. However, it can return a success/failure status to the procedure that called it.

  10. Create a stored procedure - SQL Server | Microsoft Learn

    Jan 22, 2025 · This article describes how to create a SQL Server stored procedure by using SQL Server Management Studio and by using the Transact-SQL CREATE PROCEDURE statement. Requires CREATE PROCEDURE permission in the database and ALTER permission on the schema in which the procedure is being created.

  11. Some results have been removed