Disable Transaction Logging

Posted on 2005-04-13
Medium Priority
Last Modified: 2012-08-13
Is there a way to build a new database with no transaction log file at all?  Or if there is a log file, it is not filled with anything ever?

I want to kill that overhead.  Nightly backups is fine for my application.

As always, any information helping out will be much appreciated.

Thanks in advance,
Question by:Danimal
LVL 28

Accepted Solution

rafrancisco earned 80 total points
ID: 13773019
There is no way of creating a database without a log file.  As for not filling it, the closest way to do it is to set the Recovery Mode of the database to Simple.
LVL 27

Assisted Solution

ptjcb earned 80 total points
ID: 13773594
rafrancisco is right - you must have a log file in SQL Server. You can set it to Recovery Mode: Simple (as he says) but that is it. If you import large amounts of data you will see a large log file when you are finished. You can use DBCC SHRINKFILE (2, 10) to shrink the file to a smaller size (here 10MB).

Bon chance

Author Comment

ID: 13861084
Thanks to both of you.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Suggested Courses

809 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