| 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 | |
Mastering PowerBuilder
Defining the Data Pipeline ObjectInvoke the data pipeline object painter by clicking on
Here, you need to select two database profiles. One is the source and the other one is the destination. Our target of this example is to copy data from product_master to product_master_history table. We don't have the product_master_history table. Don't worry. Keep going. Select the SQL Select data source and click OK button. Select product_master from the Select Table dialog box and click on Open button. Select all the columns from the product_master table. Just for the sake of example, let's assume all obsolete products have "obsolete" word at the beginning of their description. Let's select only those items. Define the WHERE clause as follows:
Then switch to the data pipeline definition mode by clicking on the
Here, you can specify the number of rows after which pipeline object has to COMMIT statement in the database. You can also specify the maximum number of errors after which pipeline has to stop pumping the data into the target table. Type-in the target table "t_product_master_history". If you want PowerBuilder to copy the extended attributes, check Extended Attributes option; you can do this only when you choose Create or Replace option for the Options prompt. You have a lot of choices on how you want t copy the data. You can ask for:
We need two of the above options. We need to create t_product_master_history table since it's not existing. Later we need to refresh it. Just select Create - Add Table option. Turn on Extended Attributes option. Save the object as dp_copy_to_history. Don't exit from this painter. Click on the execute From now onwards, we need to refresh the table. Basically, we add the rows. Now, select Append - Insert Rows option and save the object and exit the painter. Let's see how to use this in the script and move the rows to the history table.
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |