Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

The Multi Phase Data Pump Expand / Collapse
Author
Message
Posted Monday, March 21, 2005 10:30 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Sunday, July 27, 2014 10:38 PM
Points: 912, Visits: 209
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/dasanka/themultiphasedatapump.asp






My Blog: http://dineshasanka.spaces.live.com/
Post #169000
Posted Tuesday, March 29, 2005 12:33 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, September 29, 2014 4:53 PM
Points: 2,693, Visits: 1,207

Nice article, but would have liked a mention that using the Multi-phase Datapump to transform data will switch the datapump to row-by-row processing. This is something that people should be aware of and can lead to data loads taking much longer than if a normal datapump copy column task is used.

Also, you don't have to use all the phases. In a lot of my packages I use just the PumpComplete phase. The VBScript in this phase uses the DTSTransformPhaseInfo object to capture the number of rows exported to the file. This object also has an ErrorRows property that holds the number of errors encountered.

 



Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface

Australian SQL Server User Groups - My profile
Phills Philosophies
Murrumbeena Cricket Club
Post #170495
Posted Tuesday, March 29, 2005 1:06 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Sunday, July 27, 2014 10:38 PM
Points: 912, Visits: 209

yes u are correct phillcart.

I just enable all the phases just to give an idea as u said it is not a compulsory thing to do.








My Blog: http://dineshasanka.spaces.live.com/
Post #170508
Posted Tuesday, March 29, 2005 7:33 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, July 27, 2010 7:51 PM
Points: 1,244, Visits: 3
Our daily DTS data pumps normally run without errors, but there are a lot of messages written to the log file. If errors do occur, the messages don't help much and we have to investigate the data file in any case. It seems that we can probably reduce those messages to indicate only success or failure by using a tailored multiphase data pump.

Please comment on the differences between the default and a multiphase data pump in terms of what the default actions are. What might be involved in creating a less verbose data pump?



Post #170575
Posted Tuesday, March 29, 2005 3:39 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, September 29, 2014 4:53 PM
Points: 2,693, Visits: 1,207

As I mentioned above the main difference is if you use the Multi Phse datapump in data transformations. This switches the datapump into row-by-row processing instead of a bulk load.

If you are able to accept the performance hit you can develop a pretty sophisticated data loadng routine that traps data conversion and key violation errors. The rows in error can be redirected to an exception table for later examination.

If you're loading a lot of data then a better approach would be to bulk load the file directly into a staging table that has all the fields defined as varchar. Then you can run validation routines on the data without affecting performance.

 



Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface

Australian SQL Server User Groups - My profile
Phills Philosophies
Murrumbeena Cricket Club
Post #170701
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse