What is the difference between SQL Object and SQLExec?

Showing Answers 1 - 4 of 4 Answers

kishor

  • May 30th, 2006
 

SQL Object is a peopletool definition which can be created using app designer as well as using peoplecode command CREATESQL( ) , it is mainly used for reuseablility of the sql statements. so whenever this statement is required no need to hard code, just create an sql object of the same and use where ever it is required.

sqlexec is a peoplesoft delivered function used to retrive only one row and u can update  multiple rows of data. It  directly interacts with the database.

  Was this answer useful?  Yes

Jiju

  • Jun 8th, 2006
 

SQLExec should ideally be used for looping through data while SQLExecs (if used with select) should be used while returning a single row.

  Was this answer useful?  Yes

arungati

  • Jun 18th, 2006
 

SQL object is used for reusability, in the sense, once instantiated the data retrieved out of it can be used for further caculations logically. Physically at a database level, it takes a trip to the database server only once. SQL Exec takes a trip to the database server evertime its used.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions