I have a stored procedure with a few steps. Two of the steps require the use of a DECLARE TABLE but I do not require these tables at the same time.
The tables both have 2 BIGINT columns and may have up to 100 rows.
Is it better practice to declare the two tables or to DELETE and re-use one?
EDIT: If you’re interested, this is a follow-up to the stored procedure devised in this question
There would be only an extremely small overhead in creating the second table. However, if they have the same columns, and you don’t need the data, just delete and reuse. If you have an identity column that you use for cursor free looping (last code example in this answer), you may want to just create the second one.