I looked through it several times this morning and cannot find the problem. He is probably dead, and I will feel like an idiot when someone indicates this. What will happen to this SQL?
DECLARE @MaxID INT
SELECT @MaxID = ISNULL(MAX(WorkTypeID),0)
FROM caWorkType
ALTER TABLE
The error I get is: “The syntax is incorrect next to“ @MaxID. ”I checked and @MaxID is set to 45 using the select statement. There is also no column named“ _RowID ”in temp table #WorkType
source
share