steps of execute stored procedure sql server code example
Example 1: sql server execute stored procedure with parameters
CREATE PROCEDURE dbo.uspGetAddress @City nvarchar(30) AS
SELECT * FROM Person.Address WHERE City = @City
EXEC dbo.spGetAddress @City = 'Bordeaux'
Example 2: run stored procedure sql
-- Datagrip:
call MY_SCHEMA.my_procedure();
-- SQL Developer
exec MY_SCHEMA.my_procedure();
-- Shorter than :
BEGIN
MY_SCHEMA.my_procedure();
END;