Solved

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

Posted on 2011-03-15
2
291 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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