views:

451

answers:

3

Hi, we have several "production environments" (three servers each, with the same version of our system. Each one has a SQL Server Database as production database).

In one of this environment the tempdb transaction log starts to grow fast and infinitely, we can´t find why. Same version of SO, SQL Server, application. No changes in the environment.

Someone know how to figure what´s happening ou how to fix this?

+2  A: 

You might be in Full recovery model mode - if you are doing regular backups you can change this to simple and it will reduce the size of the log after the backup.

Here is some more info.

+1  A: 

Have you tried running Profiler? This will allow you to view all of the running queries on the server. This may give you some insight into what is creating items in tempdb.

Jon Erickson
A: 

Your best bet is to fire up SQL Server Profiler and see what's going on. Look for high values in the "Writes" column or Spool operators, these are both likely to cause high temp usage.

If it is only the transaction log growing then try this, open transactions prevent the log from being shrunk down as it goes. This should be run in tempdb:

DBCC OPENTRAN
Nick Craver