SQL Server provides the following statements to declare and set local variables.
Declare @local_variable
SET @local_variable
SELECT @local_variable