Check that all your SQL statements end with the proper end-of-statement character (a semi-colon). Check also that all strings in your SQL stream are delimited with matching quote characters. This error can occur if an end-of-string quote is missing or if the end-of-string delimiter doesn't match the string's start-of-string delimiter. (For example, if you typed a double quote at the beginning of the string and a single quote at the end, like this: "string value' ).