It might be very stupid question but can anybody tell me if SQLPREPARE() would actually make the execution faster or directly using SQLEXEC() would be a better deal when it comes to performance issue?
lets say i hv a query lcQuery
option 1 :
SQLPREPARE(DS, lcQuery)
SQLEXEC(DS)
option 2 :
SQLEXEC(DS,lcQuery)
Which would be faster ? I know SQLPREPARE compiles the query for execution but is it really required? Wouldnt SQLEXEC compile it anyway before execution?
Any insight ?
Thanks
lets say i hv a query lcQuery
option 1 :
SQLPREPARE(DS, lcQuery)
SQLEXEC(DS)
option 2 :
SQLEXEC(DS,lcQuery)
Which would be faster ? I know SQLPREPARE compiles the query for execution but is it really required? Wouldnt SQLEXEC compile it anyway before execution?
Any insight ?
Thanks