TUniQuery, ExecSQL vs Open/Close
Posted: Mon 21 Jul 2014 12:25
Hi,
I've just started with UniDAC (test version so far). From what I've seen, a nice product!!
I've got a few 'newbee' questions:
1) What is the difference between the
a) ExecSQL
b) Execute
c) Open/Close
procedures?
2) Instead of dropping components on the form, I prefer to create them myself. I found out, that I cannot free or destroy the TUniQuery object without causing an exception. It works, when I create it with a TUniComponent object as its owner. The TUniQuery object will then be free'ed when the TUniConnection object is free'ed. Is this as intended?
Maybe the answers are obvious, but I couldn't find anything in the docs, which might have answered the above.
Regards
Carsten
I've just started with UniDAC (test version so far). From what I've seen, a nice product!!
I've got a few 'newbee' questions:
1) What is the difference between the
a) ExecSQL
b) Execute
c) Open/Close
procedures?
2) Instead of dropping components on the form, I prefer to create them myself. I found out, that I cannot free or destroy the TUniQuery object without causing an exception. It works, when I create it with a TUniComponent object as its owner. The TUniQuery object will then be free'ed when the TUniConnection object is free'ed. Is this as intended?
Maybe the answers are obvious, but I couldn't find anything in the docs, which might have answered the above.
Regards
Carsten