I've never thought about if it is or not, until I had to DECLARE things inside a loop in T-SQL. Maybe this not news for many, but it was for me.