When using case-sensitive collation, the following line results in error:
Msg 207, Level 16, State 1, Line 273
Invalid column name 'html'.
Changing 'html' to 'HTML' resolves the error:
--****************************************************************************************
-- Output HTML page - copy output & pastte to a .HTML file and open with google chrome
--****************************************************************************************
if @ReturnRecocordset = 1
select HTML from ##GoogleGraph order by ID
There's also a misspelling in @ReturnRecocordset, although it doesn't really hurt anything.