Why is my alter table statement not properly adding a column to my temporary table?
问题 I have a temporary table created at the beginning of this stored procedure. It is created successfully and can be selected from and inserted to. Here is the create statement CREATE TABLE #tmpImportData (GuideFirstName VARCHAR(MAX), GuideLastName VARCHAR(MAX), email VARCHAR(MAX), group_id_text VARCHAR(MAX), CandidateName VARCHAR(MAX), grade_text VARCHAR(5), dateofbirth DATE ) My problem is trying to update a column after I alter the temporary table. I get the error Msg 207, Level 16, State 1