Ok, I did what you said--got rid of boxes in notepad. Ran it and got this error.
I can't figure out how to fix it. This line and anything around it looks good to me.
Msg 156, Level 15, State 1, Procedure IntegerToBinary, Line 53
Incorrect syntax near the keyword 'DECLARE'.