Errors on the last line where it says:
--remaining docs with isParent = NULL should be set to No at this point
update EDDSDBO.DOCUMENT
set isParent = 0
where isParent is NULL
Error is:
Msg 207, Level 16, State 1, Line 19
Invalid column name 'isParent'.
Thanks for your help.