Add Strings to odacQuery
Posted: Tue 20 May 2008 13:06
Good morning,
i need to execute more than one Update or Insert commands,
using an OdacQuery Object.
If I make:
odacQuery.Add('Update....');
odacQuery.Execute;
with only a single command, it works,
but if i add more than one command:
odacQuery.Add('Update1....');
odacQuery.Add('Update2....');
odacQuery.Add('Update3....');
odacQuery.Execute;
it doesn't work at all.
Have i to add in a certain way every
command text or am i doing something wrong?
Thanks, Fabrizio (Italy)
i need to execute more than one Update or Insert commands,
using an OdacQuery Object.
If I make:
odacQuery.Add('Update....');
odacQuery.Execute;
with only a single command, it works,
but if i add more than one command:
odacQuery.Add('Update1....');
odacQuery.Add('Update2....');
odacQuery.Add('Update3....');
odacQuery.Execute;
it doesn't work at all.
Have i to add in a certain way every
command text or am i doing something wrong?
Thanks, Fabrizio (Italy)