It could be a number of things. Without being able to see the code, I would suggest starting in two places:
- The SQL in your file is malformed, and needs to be edited to include a closing quotation mark somewhere in your
INSERT
. Line numbers aren't always concrete in errors, however, start at or near the line number it gave you.
- One or more of your data values has an apostrophe that needs to be escaped. Again, start near the line number it gave you.
In either case, you'll need to edit your \script.sql
file to fix this issue.
Edit
Ultimately, you need to edit this script, or create a new one. If you decide to re-roll this script, you'll want to try and add text qualifiers. I'm not sure where your data set is coming from, but that will need to be caught prior to running this.
If you can't re-generate the script, then you have to find a way to open it. There's no working around this problem. It's buried in that script, and it will not successfully fire until it is fixed.