I'm using -- and # for comments in my SQL scripts but when I run, it returns error messages about syntax errors. When I take the comments out it runs fine. For examples below cause errors.
#################################################
# DELETE RECORDS FROM TABLE
#################################################
-- DELETE RECORDS FROM TABLE WHERE EXTRACT RECORDS CONTAIN DELETE
The only comment I can do is # at the beginning of a line which I guess is sufficient but I want to know why this doesn't work. Did this all the time in SQLServer.
#comments causing errors (I've had that same issue). But I recommend you change all your comments to--to avoid any problems.