|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8,
Visits: 18
|
|
Hi, I have nearly 1 Crore records at my source side,i have to transfer these records to destination in batch wise let's suppose like 1 lakh records per batch.How can i implement this scenario.Pls help me.
Thank you.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:49 AM
Points: 3,123,
Visits: 4,310
|
|
In SSIS OLEDB destination component, set load type to table or view - fast load; there will be options made available, including rows per batch and maximum insert commit size. set these to circa 10.000 to begin with and increase or decrease according to the speed required and amount of ram available.
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8,
Visits: 18
|
|
Please suggest me to do the same with FOR Loop or FOR EACH Loop.
Thanks in Advance
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:49 AM
Points: 3,123,
Visits: 4,310
|
|
What is the data source (e.g. oracle, SQL server, DB2, etc)?
If SQL Server, consider using the ROW_NUMBER () function in a CTE to select e.g. 100.000 records at a time. use variables, e.g. StartAt and UpTo (both of datatype (DT_I8)) to identify which row numbers to use. also remember to sort. refer to the following link: http://msdn.microsoft.com/en-us/library/ms186734.aspx
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8,
Visits: 18
|
|
Thanks For Your Reply.. My Source Data BAse is Oracle and the Target is SQL Server.
Please help...
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8,
Visits: 18
|
|
How to split a Oracle Data source data into different Rawfiles with a fixed size of 10,000?On which we can split the source data of Oracle? Pls hlp..
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 09, 2013 1:20 PM
Points: 936,
Visits: 1,184
|
|
But why do you need to use a For each loop? As mentioned by stewartc mentioned use batch size and commit size of 10,000 with TABLOCK option in the OLEDB Destination component, using TABLOCK option will speed up the data load operation. If you need more than 10K records to be processed increase the size to 100,000 (1 lakh).
Thanks,
Amol Naik
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8,
Visits: 18
|
|
For each batch(10,000 records) i need to run a script.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 09, 2013 1:20 PM
Points: 936,
Visits: 1,184
|
|
How about this then... Load all the records to a staging table with IDENTITY column. Using T-SQL Loop thru the records using IDENTITY range. This will be more efficient and easy too.
Thanks,
Amol Naik
|
|
|
|