GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Peoplesoft  >  PeopleCode
Go To First  |  Previous Question  |  Next Question 
 PeopleCode  |  Question 7 of 30    Print  
Whats the advantage and disadvantage of Sqlexe in peoplecode?
adv: no need to write query just want to build
dis: we cant view queries



  
Total Answers and Comments: 7 Last Update: July 09, 2009     Asked by: ajith 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sagar waikar
 
By using SQLExec function we can do the manipulation to the database. we can write insert,update,delete sql commands.But drawback while selecting the data using sqlexec, it will return only one at a time.another drawback, if the name of the records changed, then you have to make the changes in the code as the query will in the quotes inside sqlexec

Above answer was rated as good by the following members:
shalini kumari
January 12, 2006 05:45:43   #1  
sagar waikar        

RE: whats the advantage and disadvantage of sqlexe in ...
By using SQLExec function we can do the manipulation to the database. we can write insert update delete sql commands.But drawback while selecting the data using sqlexec it will return only one at a time.another drawback if the name of the records changed then you have to make the changes in the code as the query will in the quotes inside sqlexec
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 18, 2006 09:38:17   #2  
arundgati        

RE: whats the advantage and disadvantage of sqlexe in ...
SQL exec takes a trip to the server evertime used unlike the SQL obect which takes a trip to the server only once.
 
Is this answer useful? Yes | No
July 17, 2006 02:22:19   #3  
shravya        

RE: whats the advantage and disadvantage of sqlexe in ...

Sqlexec allows us to write SQl statements in Peoplecode.Through SQLexec we can insert update and delete.It returns one row of data.

Disad:

Eventhough select returns multiple rows sqlexec returns one row.

If w make changes to the definition it doesn't refer the quoted string in SQLexec.We need to change it manually.

syntax:SQlexec( select bindvariable)


 
Is this answer useful? Yes | No
November 13, 2006 10:16:00   #4  
People User        

RE: whats the advantage and disadvantage of sqlexe in ...
Also SQLEXEC function has one more disadvantage where it will not pick up related langauge data automatically. You have to explicitly fire two SQLEXEC's one for base langauage and one for related language by Checking Language_User
 
Is this answer useful? Yes | No
April 26, 2007 11:04:24   #5  
Narendar Reddy        

Whats the advantage and disadvantage of Sqlexe in ...
Dec: It retrieves only one row of the data from the database.
 
Is this answer useful? Yes | No
April 26, 2007 11:06:52   #6  
Narendar Reddy K.        

Whats the advantage and disadvantage of Sqlexe in ...

If we need to retrieve more than one rows from the database we can use SQL class instead of SqlExec...


 
Is this answer useful? Yes | No
July 09, 2009 08:54:32   #7  
amitsk_00 Member Since: July 2009   Contribution: 3    

RE: Whats the advantage and disadvantage of Sqlexe in peoplecode?
Also SQLExec will open a new session on database so if anything has been updated in Comp Buffer will not be available in that session as COMMIT might not have happened. Also if we have selected some value in Comp Buffer and then change the same after with SQLExec we are creating a problem with data.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape