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: Question: #36 of #131
Next Lesson: Question: #38 of #131
Question: #37 of #131 Section: DataWindow Version: 5.0 or later

Question

Explain different ways of generating a serial number for a column in a table. Explain ways in PowerBuilder and in the database. Which method you recommend?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

This has to be controlled from the database, not from the PowerBuilder. This is because, a unique serial number generated by a POWERBUILDER client may not be unique for other user or when it is put in the database. If the database supports auto incrementing (Different database vendors implement it in different ways, for ex: sybase implements using Identity column property, Watcom calls AutoIncrement, Oracle selects from a special table), then there is no problem. Otherwise, you can use a single row single column table to generate serial no. The method you choose might depend on the performance issues and number of expected inserts and other factors.

Click here to go to top of the page.
HomePrevious Lesson: Question: #36 of #131
Next Lesson: Question: #38 of #131

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