SQL Server Stored Procedure - How To

preview_player
Показать описание

Stored procedures are a helpful feature of SQL Server.
In this video, you'll learn:
- what they are
- when and why to use them
- some simple examples of using stored procedures to select, insert, update, and delete data

⏱ TIMESTAMPS:
00:00 - Intro and setup
01:08 - Select stored procedure
03:04 - Insert stored procedure
06:41 - Update stored procedure
08:26 - Delete stored procedure

🔗 VIDEO LINKS:
Рекомендации по теме
Комментарии
Автор

thank you, simple explanation with straightforward examples ( I wish there were one advanced example)

colourNika
Автор

Well done on this video, please I need your tutorial on how to use the Stored procedure for the validation of input parameters

zvsbenx
Автор

Good structured Video and informative content 💪

Impergator-ldgi
Автор

CREATE PROCEDURE SelectCustomers
AS
SELECT *
FROM Customer;



CREATE PROCEDURE InsertCustomer
@customer_name NVARCHAR (50), @customer_status INT=1
AS
INSERT INTO Customer




CREATE PROCEDURE UpdateCustomer
@newName NVARCHAR (50), @newActive INT, @customerId INT
AS
UPDATE Customer
SET Name = @newName,
is_active = @newActive
WHERE Id = @customerId;

====

CREATE PROCEDURE DeleteCustomer
@customerId INT
AS
DELETE Customer
WHERE Id = @customerId;

kvelez