Question & Additional Information
 
What is the difference in using SQL directly and calling SQL from Peoplecode in Application Engine?
Add to My IQ
 

 | 
Inappropriate
Answer Title
Answer
 If we use SQL directly then it will go to database directly to fetch rows of data. But if u write SQL'S in peoplecode, then the trip will be from application server to database because peoplecode resides in app server.
One should avoid writing SQL'S in App engine peoplecode as it would degrade the performance.
Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Flag this interview question as inappropriate Inappropriate
See Answer
Referential Integrity defines that the Primary key of one table should be match to the foreign key of other tables .
 
Create Date
:
Saturday, May 10, 2008
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
There are numerous good possibilities:
Loyalty, Energy, Positive attitude, Leadership, Team player, Expertise, Initiative, Patience, Hard work, Creativity, Problem solver.
Click here to improve the Interview Question, Answer and other fields.
Comments (1) :
1.
bbfromdc
Sunday, October 12, 2008 8:02 AM
I simply love my supervisor Is it okay ?
It depends what the logic is. If you need to do complex manipulation of data already in the database, it is probably better than trying to run sql queries and fetch the data into the middle tie and perform the manipulation in the middle tie, then send the large amount of data back to the database using sql insert or update. On the other hand, you can do to something simple using sql, but you have to write quite a lot of code in stored procedure, why do that.

For stored procedure vs. dynamic sql queries, assuming you are not talking about case where you can call stored procedure within a sql query or you can use dynamic sql inside a stored procedure, dynamic query has a downside (at least in Oracle db), that it has to be compiled if the exact sql string is not used recently (seconds I think) by any session, which could takes some time, and use some system resource. On the other hand, logic in stored procedure is not necessary automatically better.

I think you have to compare approaches based on how easy it is to write the code to do what you want, how easy it is for others to understand and maintain the code, and what is the performance cost in a target database, etc.
Create Date
:
Monday, May 05, 2008
Asked At
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Window a windows NT user account with administrator privileges,SQL Server cannot schedule task  and alerts, or perform replication.
Create Date
:
Tuesday, April 01, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :</