Must declare the table variable
问题 I come across an error while writing some SQL statements for data imports. As I am doing data port, I need to declare some temporary table variables. I declared a table variable at the beginning of the file and performed some manipulations (while loops, insertions and updates) on the table variable. Later in the middle of the scripts in another while loop if I access this table variable the script parsing giving below error Must declare the table variable @temptable Appreciate your help. 回答1: