DECLARE MyVariable INT SET @MyVariable = 1 GO -- This terminates the batch. -- @MyVariable has gone out of scope and no longer exists. -- This SELECT statement gets a syntax error because it is -- no longer legal to reference @MyVariable. SELECT * FROM Employees WHERE EmployeeID = @MyVariableWas there a specific topic that indicated something different?