If you see such variables, and the code is not DECLARE , this means that they must be passed when the query is executed;
CREATE PROCEDURE [dbo].[SomeStoredProc] @variable1 varchar(50), @variable2 as varchar(50) AS DECLARE @Variable3 varchar(50)
When you start EXEC SomeStoredProc , you will need to keep track of this value with the values Variable1 and Variable2 , otherwise it will result in an error. Variable3 above is created inside a stored proc, so it does not need to be passed using the EXEC command.
source share