| Hyderabad Jobs | Book Website | ![]() |
I Love Hyderabad | Hyderabad Colleges |
| Home | Business Emails | Hyderabad Classifieds | Contact Us | |
| 7 Wonders of Hyderabad | Web Hosting | Yellow Pages | Our Network | |
Advanced PowerBuilder
Dynamic SQLDynamic SQL consists of a set of embedded SQL facilities, that are specially provided for the construction of a generalized, on-line ( and possibly interactive ) applications. PowerBuilder doesn't support certain SQL statements, either through DataWindow or embedded SQL. These include:
You can get round these using dynamic SQL. Since PowerBuilder doesn't check for SQL syntax errors at compile time, it is up to the database to take care of it. We can broadly divide dynamic SQL statements into 4 categories:
You need to use different formats in order to execute each of these statements. Dynamic SQL introduces two new terms, dynamic Staging Area and dynamic Description Area. Dynamic Staging AreaDynamic Staging Area is internally used by PowerBuilder and is the connection between execution of a statement and Transaction Object. You can't access the information in the dynamic Staging Area. PowerBuilder provides a global-level dynamic Staging Area named SQLSA. It contains the following information, for use, in subsequent statements:
Dynamic Description AreaThe dynamic description area stores information about input and output parameters and is used with the fourth format of dynamic SQL. PowerBuilder provides a global-level dynamic description area named SQLDA, with the following structure:
The two principal statements of dynamic SQL are PREPARE and EXECUTE. The PREPARE statement takes the base SQL commands and places them in the SQLSA command buffer for execution. The EXECUTE statement passes these commands from the buffer to the back-end database and returns the feedback information to SQLCA as usual.
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |