Solved

Transaction log

Posted on 2007-03-26
5
421 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 68

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

947 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now