Hello,
I'm trying to run a generated SQL script as one SQL query, but keep getting errors when parsing request. I tried TZQuery.SQL.Text TZQuery.SQL.LoadFromFile(), ... but to no avail.
Am I overlooking something ? Is there a supported way to run a script against an already connected DB ?
Thanks in advance,
Batch Insert
Moderators: gto, cipto_kh, EgonHugeist
I'm afraid it doesn't change anything. That's basically what I did (except for using TZReadOnlyQuery). I tried 6.5.1-alpha, lastest CVS, and 6.1.5-stable.
I think it's confused by the ';' at the end of an SQL statement.
Did you strip comments, or change your SQL in any way ?
I guess I'll have to split my file, and run each request on its own.
I think it's confused by the ';' at the end of an SQL statement.
Did you strip comments, or change your SQL in any way ?
I guess I'll have to split my file, and run each request on its own.
Problem solved. It seems to be a regression from 6.1.5, but it's possible to use the TZSQLProcessor to do multi-statements.
More info in this thread http://seegernet.koolhost.de/zeosforum/ ... .php?t=299
More info in this thread http://seegernet.koolhost.de/zeosforum/ ... .php?t=299