Advertisement

08.10.2006 at 09:03AM PDT, ID: 21950100
[x]
Attachment Details

Commit Massive INSERT every 100 rows

Asked by paulop1975 in MS SQL Server

Tags: insert, from, select

Hi, all!

I'm running an INSERT statement which is fed by an enormous Query to the SQL database. Something like this:

INSERT INTO table_name (column1, column2, ...)
SELECT * FROM another_table_name

This takes about 45 minutes to execute and throughs TEMPDB up into the sky (about 13 GB). Sometimes, the insert statement stops because of unsuficient disk space.

What I'd like to know is: Is there any database parameter or something, that forces an INSERT statement to insert + commit every 100 rows, for example?

Thnx & Regards
PauloStart Free Trial
 
Loading Advertisement...
 
[+][-]08.10.2006 at 09:20AM PDT, ID: 17289029

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: insert, from, select
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.10.2006 at 11:20AM PDT, ID: 17290066

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.10.2006 at 12:06PM PDT, ID: 17290449

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.04.2006 at 12:55PM PDT, ID: 17662639

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.04.2006 at 03:26PM PDT, ID: 17664106

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2006 at 07:09PM PDT, ID: 17695285

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32