I have a table variable in a script (not a stored procedure). Two questions:
Table variables are automatically local and automatically dropped -- you don't have to worry about it.