TMyQuery Execute vs ExecSQL
Posted: Thu 15 Mar 2012 11:27
Hi
Would someone help me to understand the main differences between using something like:
TMyQuery *Q = new TMyQuery(Application);
Q->Connection = conn;
Q->SQL->Add(query);
Q->Execute();
Q->Free();
OR
...
Q->ExecSQL();
...
Assuming "query" will be always an Update, or Delete or Insert statement.
I know Execute does an implicit call to Prepare, is that the only difference between ExecSQL and Execute?
Thanks
Javier
Would someone help me to understand the main differences between using something like:
TMyQuery *Q = new TMyQuery(Application);
Q->Connection = conn;
Q->SQL->Add(query);
Q->Execute();
Q->Free();
OR
...
Q->ExecSQL();
...
Assuming "query" will be always an Update, or Delete or Insert statement.
I know Execute does an implicit call to Prepare, is that the only difference between ExecSQL and Execute?
Thanks
Javier