FastLoad option on SSIS with int identity as primary key

Alberto Ferrari posted some test we made working on performance optimization loading data in very large dimension tables. When we discovered that an int identity primary key is not handled by SQL Server just as an ordered set of data in a bulk operation… we had to triple check the whole thing. I would like to know if there is a way to bulk insert data in a table with an identity primary key – after all, this would remove the need for an identity generator inside SSIS…

However, I totally agree with Alberto when he says “the OleDb destination adapter should issue a warning if both ORDER fastload option¬†and Maximum insert commit size parameter are used”. It could help many SSIS developers who are not completely aware of all SQL Server bulk insert (fast load) details.

Article written by
Post originally appeared on:

 Enclose code in comments with <PRE></PRE> to preserve indentation.