Can anyone help me fix this script?
I get this error: Msg 4104, Level 16, State 1, Line 1 The multi-part
identifier “#Temp3.EmpID” could not be bound.
the error is coming from: — Update into Keyshop.EmployeeTable
UPDATE EmployeeTable SET Status = ‘False’ WHERE #Temp3.EmpID = EmployeeTable.EmpID
The script is pretty self explanatory but let me know if you need me to provide more info.
Thank you
-- Update into Keyshop.EmployeeTable
UPDATE EmployeeTable SET Status = 'False' WHERE #Temp3.EmpID = EmployeeTable.EmpID
This isn’t a valid update statement since it references a table not in the
UPDATEClause or the OptionalFROMclauseThere are several ways to do it using
INis probably the easiest to understand