Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Questions And Answers for PowerBuilder Interviews

HomePrevious Lesson: Course 5:: Session 1 :: Page 1
Next Lesson: Question: #2 of #131
Question: #1 of #131 Section: PowerScript Version: 5.0 or later

Question

What is the difference between SetTrans() and SetTransObject()?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

In simple terms, SetTrans() gives you no control on the transactions. It automatically connects to and disconnects from the database after each Retrieve() and Update() function. It is useful when the number of connections are limited, but, you can't use this for multi-table update. On the other hand SetTransObject() gives you full control over the transactions. It is your responsibility to connect to and disconnect from the database and also, you need to issue COMMIT/ROLLBACK statements. This method is more efficient since there is no connect/disconnect overhead for each database operation.

Click here to go to top of the page.
HomePrevious Lesson: Course 5:: Session 1 :: Page 1
Next Lesson: Question: #2 of #131

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com