Subject | Re: Executing a block of statements in C++ |
---|---|
Author | Greg At ACD |
Post date | 2004-12-23T04:25:33Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
that's easy enough to accomplish on my end; I would have thought it
would be more efficient to send the entire script to the server in
one shot and have it execute...
it into Canada. Certainly I would expect to have less questions once
I receive this highly anticipated (and highly reviewed) book :)
Thx
Greg
wrote:
> At 01:00 AM 23/12/2004 +0000, you wrote:Executing a
>
>
> >Hi all,
> >
>
> Yup. In DSQL you can execute only one statement at a time.
> script is something you do through a tool, either of your ownmaking or
> using an existing one. For example, look at the Ops Guide to seehow to
> execute a script file from the command line via isql using the -input
> switch. Or, otherwise, code your program so it iterates throughsome kind
> of list of statements that you introduce as hard code or read froma file,
> whatever you prefer.to do it
>
> If you're writing to the raw API, no, not if you don't write code
> by one fashion or another. If you are using a component interfacethat
> provides a scripting capability then yes. There are things towatch out
> for when executing scripts programmatically, since exceptions willoccur if
> you try to do stuff that depends on objects that your app codehasn't
> committed.So, in essence each statement must be sent separately anyway...
>
that's easy enough to accomplish on my end; I would have thought it
would be more efficient to send the entire script to the server in
one shot and have it execute...
>Firebird Book.
> >I'm not sure what I'm missing here :(
>
> I can tell. :-) Maybe you should ask Santa for a copy of The
>Already on order from Amazon. It will take a couple of weeks to get
> ./hb
it into Canada. Certainly I would expect to have less questions once
I receive this highly anticipated (and highly reviewed) book :)
Thx
Greg