GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Informatica
Go To First  |  Previous Question  |  Next Question 
 Informatica  |  Question 585 of 631    Print  
What is Target Update Override? What is the Use ?

  
Total Answers and Comments: 4 Last Update: November 19, 2008     Asked by: ramesh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 28, 2007 20:28:20   #1  
chandrarekha Member Since: May 2007   Contribution: 14    

RE: What is Target Update Override? What is the Use ?
It overrides the default update statemet in the target properties
 
Is this answer useful? Yes | No
December 25, 2007 22:03:21   #2  
seshasai.n Member Since: December 2007   Contribution: 1    

RE: What is Target Update Override? What is the Use ?
target update override it is also like souce qualifier override,target update override is use ful to update the target with out using the update strategy transformation.
 
Is this answer useful? Yes | No
September 12, 2008 03:20:34   #3  
miteshcpatel Member Since: September 2008   Contribution: 2    

RE: What is Target Update Override? What is the Use ?
When we don't have primary keys defined on database level. And still we need update on this target from Informatica. We neeed to define keys at informatica level and use update override in target property. This way we can update the table.
 
Is this answer useful? Yes | No
November 18, 2008 07:46:42   #4  
ORAINFO Member Since: November 2008   Contribution: 5    

RE: What is Target Update Override? What is the Use ?
The Integration Service updates target tables based on key values. However, you can override the default UPDATE statement for each target in a mapping. You might want to update the target based on non-key columns.

When the Integration Service executes SQL against a source, target, or lookup database, it searches the reserved words file stored in the Integration Service installation directory. It encloses matching reserved words in quotes. If you use target update override, you must manually put all reserved words in quotes.


For a mapping without an Update Strategy transformation or a Custom transformation with the update strategy property enabled, configure the session to mark source rows as update. The Target Update option only affects source rows marked as update. The Integration Service processes all rows marked as insert, delete, or reject normally.


When you configure the session, mark source rows as data-driven. The Target Update Override only affects source rows marked as update by the Update Strategy or Custom transformation.


For example, a mapping passes the total sales for each salesperson to the T_SALES table.


The Designer generates the following default UPDATE statement for the target


T_SALES:UPDATE T_SALES SET EMP_NAME = :TU.EMP_NAME, DATE_SHIPPED = :TU.DATE_SHIPPED, TOTAL_SALES= :TU.TOTAL_SALES WHERE EMP_ID = :TU.EMP_ID


Because the target ports must match the target column names, the update statement includes the keyword:TU to specify the ports in the target transformation.


If you modify the UPDATE portion of the statement, be sure to use :TU to specify ports.


You can override the WHERE clause to include non-key columns.


For example, you might want to update records for employees named Mike Smith only. To do this, you edit the WHERE clause as follows:


UPDATE T_SALES SET DATE_SHIPPED = :TU.DATE_SHIPPED,TOTAL_SALES = :TU.TOTAL_SALES WHERE :TU.EMP_NAME = EMP_NAME andEMP_NAME = 'MIKE SMITH'


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape