?
Solved

Transaction log

Posted on 2007-03-26
5
Medium Priority
?
431 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
[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
5 Comments
 
LVL 70

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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

771 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