Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Advice on Large Inserts Please

$
0
0

I have searched through this Forum and gained lots of ideas but would like an overview of the options that I should consider.

I need to import millions of rows from one database table (a couple of them actually) to another, on the same server. From experience I know that a simple TSQL select from one table to the other will result in serious performance issues with massive growth in tempDB size etc.

One obvious approach would be a simple SSIS package which will automatically is bulk insert has options set the :batch Size" and "Commit Size". I am never quite which of these two has the most beneficial effect by the way, so any thought on that subject would be welcome.

Is there a simple way to achieve the same thing is T=SQL? Either way, the query that retrieves the data from the source table will be the same it's just a question of whether is use as a data source in SSIS or complete the process in T-SQL.


R Campbell


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>