The user has a function to update table data using txt, which is implemented using lookup. steps:
TXT file of the circulating folder
Use lookup to compare the TXT and target table data in all the cache target table data
650) This. width = 650; "width =" 643 "Height =" 633 "Title =" 2014-08-06 16-39-33.png "style =" width: 522px; Height: 389px; "alt =" wKioL1Ph7J2DkGcKAAF0OO3-dD0548.jpg "src =" http://s3.51cto.com/wyfs02/M01/44/8D/wKioL1Ph7J2DkGcKAAF0OO3-dD0548.jpg "/>
3. Use TXT to update the target table if match data exists.
650) This. width = 650; "Title =" 2014-08-06 16-48-16.png "alt =" wkiol1ph7sirrrp6aacpyh_8kj8464.jpg "src =" http://s3.51cto.com/wyfs02/M02/44/8D/wKioL1Ph7SiRRRp6AACpyH_8kJ8464.jpg "/>
However, the data for each match is 0, and the TXT file does contain matched data. After turning over Microsoft's Bol, one sentence is very important:
If there are multiple matches in thereference table, The lookup transformation returns only the first matchreturned by the lookup query. if multiple matches are found, The lookup transformation generates anerror or warning only when the transformation has been configured to load allthe reference dataset into the cache. in this case, the lookuptransformation generates a warning when the transformation detects multiplematches as the transformation fills the cache.
Later, I checked that all records in my records were repeated. Because I chose the "Redirect rows to no match output" method to handle errors, the data was not match.
Then try to delete the duplicate data. This problem is rarely encountered because most applications are in the data warehouse and all dimensions are one.
Another thing to note is that lookup is case sensitive and should be noted when processing data with characters.
In addition, this function can also be implemented by using the previous component that handles slow change dimensions.
This article is from the "follow SQL Server Technology" blog, please be sure to keep this source http://lzf328.blog.51cto.com/1196996/1536480