Solved

Transaction log

Posted on 2007-03-26
5
423 Views
Last Modified: 2012-06-27
How do I limit the size of a transaction log? How do I configure what happens when that size is reached? Is there an option that allows me to push out the eldest transaction, as the most recent comes in?

Thanks,

Christo Fourie.
0
Comment
Question by:idsafs
5 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 18798494
* Limit size: DB properties -> Files, look for type = log, on the right there shoukld be a button to change the size limit.

* you cannot configure the reaction if max log file size is reached. The DBMS will reject any changing SQL command till space is freed in the log, or the size limit is removed.

* When DB recovery mode is "Simple", the transaction log space is freed as soon as possible. All other recovery models require you to backup the transaction log to free space.
0
 
LVL 7

Expert Comment

by:badbearontour
ID: 18798516
Hi,

Microsoft SQL Server Mananger
right mouse click on your database
Select Files in the popup database properties
Look at the grid and you will see the auto growth columns clcik on the button at the end of the box and on the log row, you will see your options

There is no option for a circular log, that would endanger you to not being able to recover a database! but you can grow a log at a certain rate or cap it at a size, but beware if the log fills up the database will stop

BB
0
 
LVL 8

Expert Comment

by:Julianva
ID: 18798517
You can limit the size using enterprise manager (sql 2000) or management studio(sql 2005)

right click on the database - chose properties - then chose transaction log - you will see the radio button to limit the size of the log file.

No there is no option to push out the oldest transaction.
you can truncate the entire log file.
you can also set the database to use simple or bullk logged recovery modes - so that sql server does not log every transaction. To do this you need to determine if at any time you will need to recover the database to a point in time.



0
 
LVL 1

Author Comment

by:idsafs
ID: 18798823
Hi.

Thanks for your replies! I misunderstood my superior. !The transaction log is not the problem, but this :

What our issue is is that the tempdb fills up as we go along Basically, from what I understand, the tempdb is created new each time the server starts, this then grows as things are done in any active db.  It is this growing that we need to restrict, nothing to do with the active/production db.

Any ideas?
0
 
LVL 8

Accepted Solution

by:
Julianva earned 500 total points
ID: 18799560
where is you tempdb database files situated.  you can move the temp db to a drive that has enough space to accomodate the growth of tempdb and leave the growth option to unrestricted..

You can also create a maintenance job to truncate the tempdb and shrink it.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Date from a string 4 65
passing parameter in sql procedure 9 63
Truncate vs Delete 63 105
How to import SQL 2000 database to SQL 2014 5 114
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

777 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