Solved

What does SQL server do when bulk loading data into a Database in Simple mode.

Posted on 2011-03-15
2
294 Views
Last Modified: 2012-05-11
Can some one tell me what SQL server does when bulk loading data into a database that is in simple mode.

Such as file growth, table space growth etc. what about transactions how are they handled?
0
Comment
Question by:Steve Samson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 35148549
In SIMPLE recovery mode, only enough data is kept in the logs to properly roll back uncommitted transactions or roll forward transactions that committed but haven't been written to the data files yet - it's minimal.

During the bulk load, your table grows as a normal rate, but the log space used is minimal, as it's only enough to hold the currently uncommitted (or committed but unflushed) rows.

When you're bulk-loading data and your database is set to SIMPLE recovery mode, it's not itself wrapped in a transaction, so a failed bulk-load could leave half the data in your database. As I understand it, setting your recovery mode to BULK-LOAD will basically put it in SIMPLE mode, with the added benefit the bulk operations can also be rolled forward and backward as an atomic unit.
0
 

Author Closing Comment

by:Steve Samson
ID: 35149001
consise
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question