Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6005521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:24:32+00:00 2026-05-23T01:24:32+00:00

I have an INSERT statement that is eating a hell of a lot of

  • 0

I have an INSERT statement that is eating a hell of a lot of log space, so much so that the hard drive is actually filling up before the statement completes.

The thing is, I really don’t need this to be logged as it is only an intermediate data upload step.

For argument’s sake, let’s say I have:

  • Table A: Initial upload table (populated using bcp, so no logging problems)
  • Table B: Populated using INSERT INTO B from A

Is there a way that I can copy between A and B without anything being written to the log?

P.S. I’m using SQL Server 2008 with simple recovery model.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:24:33+00:00Added an answer on May 23, 2026 at 1:24 am

    From Louis Davidson, Microsoft MVP:

    There is no way to insert without
    logging at all. SELECT INTO is the
    best way to minimize logging in T-SQL,
    using SSIS you can do the same sort of
    light logging using Bulk Insert.

    From your requirements, I would
    probably use SSIS, drop all
    constraints, especially unique and
    primary key ones, load the data in,
    add the constraints back. I load
    about 100GB in just over an hour like
    this, with fairly minimal overhead. I
    am using BULK LOGGED recovery model,
    which just logs the existence of new
    extents during the logging, and then
    you can remove them later.

    The key is to start with barebones
    tables, and it just screams. Building
    the index once leaves you will no
    indexes to maintain, just the one
    index build per index.

    If you don’t want to use SSIS, the point still applies to drop all of your constraints and use the BULK LOGGED recovery model. This greatly reduces the logging done on INSERT INTO statements and thus should solve your issue.

    http://msdn.microsoft.com/en-us/library/ms191244.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI, I have an insert statement in a Stored Procedure that requires the value
I have one multi-row INSERT statement (300 or so sets of values) that I
I have a table Survey_Data_Response that is populated with an 'insert into' statement from
I have a SQL insert statement that looks something like this? $SQL = INSERT
I have a MySQL insert statement that inserts data from an existing Despgoods table
I have some procedure that perform INSERT statement: CREATE OR REPLACE PROCEDURE potok_insert( p_jfplate
I have an INSERT statement that looks like this: INSERT INTO officer (officer_number, name,
I have a standard insert into / select statement that is formatted similar to
I have a mysql insert statement that breaks when the system can't get lat/lng
I have an insert statement that pulls some data into a few table variables

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.