Most new users of PowerBuilder start with SQL Anywhere as the back-end database engine (formerly Adaptive Server Anywhere or ASA, and before that Watcom). With growth, a need to shift and adapt to a wider database platform is thrust on developers by customers. A recent exercise in this regard, besides re-emphasizing our past amateurishness, has also helped us make a clean, lean application. This article, besides providing insights on how to avoid basic mistakes, also has a few tips for our experienced colleagues on how to do some spring cleaning of established applications.
Background Our application development started as a hobby without any formal training (see About the Authors); so our application-making approach was based on intuition. We found PowerBuilder to be the most suitable platform for our data- and report-centric needs. It was natural to use Watcom and later ASA 5 to create the database. By the time we had a real workable application ready (around two years for our own use, and six years for commercial use), the database structure created, though faulty as per the norms followed by other RDBMSs, was working well. A system analyst friend had given us ERwin case tools and some initial insight on normalization, etc.
The demand for Adaptive Server Enterprise (ASE) first arose in 2005. A previous attempt to shift to SQL Server met with partial success but wasn't completed. A similar exercise has been documented by Timothy Beck ("To Convert or Not to Convert ASA to MSSQL" http://pbdj.sys-con.com/read/42622.htm). With ASE and SQL Server sharing the same birthright, the processes involved were largely similar.
However, we do have many new insights to share over and above those mentioned in the previous article. To avoid redundancy, most of the database transfer issues already mentioned will be kept out of the discussion. So this article should be seen as an addendum to the above.
Our Application We have 19 PBLs, 150 tables, over 1,200 objects and DataWindows including those specially made for use as DropDownDataWindows (DDDWs). We do not use PFC. Most of the initial objects were made from scratch or through the samples on the CD provided along with books on PowerBuilder. Stored procedures and triggers are used minimally and managed at the application level through the direct SQL Syntax in PowerBuilder. We feel that a good application should have a high percentage of these as they help keep data consistent and help in making the application perform better. All database-intensive tasks should be done using stored procedures.
About SB Gogia SB Gogia is a plastic surgeon in New Delhi. He has contributed to the software development efforts of his family-owned company - AMLA MEDIQUIP. Gogia has worked mostly with SQL and PowerBuilder, although he has dabbled in JavaScript, C++, VB and more.
About Amal Sharma Amal Sharma is a PowerBuilder developer with 10 years of experience. Both Amal and SB Gogia started working formally as a team in 2005.
About Bhaskar Azad Bhaskar Azad is a medical doctor doing post-graduate work at the School of Medical Science and Technology at IIT, Kharagapur. He did a short internship with Amla Mediquip.
About Rohit Tyagi Rohit Tyagi is a medical doctor doing post-graduate work at the School of Medical Science and Technology at IIT, Kharagapur. He did a short internship with Amla Mediquip.
Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice: