Hi,
Aaron: It is set to 10% autogrow.
Andrew: I agree that figuring out the 28GB to 100MB ratio is our main
concern. What are the applications doing to cause that? What was even
stranger, is when the file was 28 GB, Enterprise Manager's Shrink File
dialog box said that it had 25 GB used. But when I did a File Shrink on
templog, within just a few seconds, it shrunk to 1 MB with .3 MB used. I
wondering why SQL Server thought that 25 GB was used, but then allowed it to
be discarded so quickly.
Andrew: It has simple recovery model and it is not backed up at all.
Roy: The application developers claim that the only transactions in the
application running at the time have only insert statements. But they do
make heavy use of temp tables.
We are going to do a SQL Server restart 15 min before the job's next run so
we have a fresh templog file. Then I will monitor templog's size as the job
runs.

Signature
Thank you,
Daniel Jameson
SQL Server DBA
Children's Oncology Group
www.childrensoncologygroup.org
>>But why do you have a 28GB log file with a data file that is only 100MB?
>>Is
[quoted text clipped - 18 lines]
> Roy Harvey
> Beacon Falls, CT
Andrew J. Kelly - 25 Jul 2008 19:23 GMT
Sorry Daniel I completely missed the fact that it was tempdb. What version
are you running? There were several issues related to Tempdb filling up like
that with SP2 or eelier. If you don't already you should look at loading one
of the cumulative updates. I believe CU7 had most if not all the related
fixes.

Signature
Andrew J. Kelly SQL MVP
Solid Quality Mentors
> Hi,
>
[quoted text clipped - 40 lines]
>> Roy Harvey
>> Beacon Falls, CT
Daniel Jameson - 25 Jul 2008 19:56 GMT
Andrew,
We are running SQL 2000 SP4.

Signature
Thank you,
Daniel Jameson
SQL Server DBA
Children's Oncology Group
www.childrensoncologygroup.org
> Sorry Daniel I completely missed the fact that it was tempdb. What
> version are you running? There were several issues related to Tempdb
[quoted text clipped - 47 lines]
>>> Roy Harvey
>>> Beacon Falls, CT
Andrew J. Kelly - 25 Jul 2008 23:26 GMT
Ahh, well for future reference always state the version you are on. The
issues I mentioned are 2005 related. I wish I had more for you.

Signature
Andrew J. Kelly SQL MVP
Solid Quality Mentors
> Andrew,
>
[quoted text clipped - 51 lines]
>>>> Roy Harvey
>>>> Beacon Falls, CT
TheSQLGuru - 26 Jul 2008 22:09 GMT
Set up a profiler trace and check for a looping situation where small
amounts of data are updated iteratively, or insert/deletes are done
iteratively, all within an uncommitted transaction. This would lead to a
small datafile size but massive tempdb log file. It is about the only thing
I can think of that would lead to it, other than a bug.
Hmm, what is your recovery interval on the server set to? Probably couldn't
do this but I will ask anyway.

Signature
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net
> Hi,
>
[quoted text clipped - 40 lines]
>> Roy Harvey
>> Beacon Falls, CT
Daniel Jameson - 29 Jul 2008 17:33 GMT
Hi,
Thank you all for your timely input. It seems that the templog.ldb file had
gotten corrupted and was not properly recycling its committed blocks. I
stopped the MSSQLSERVER service, renamed the templog.ldb file to
templogbak.ldb to force SQL Server to create a completely fresh templog.ldb
file, and the started MSSQLSERVER.
That nightly process has run three times since then, and templog.ldb is
still only 2 MB and the tempdb.mdb file is only 32 MB.

Signature
Thank you,
Daniel Jameson
SQL Server DBA
Children's Oncology Group
www.childrensoncologygroup.org
> Set up a profiler trace and check for a looping situation where small
> amounts of data are updated iteratively, or insert/deletes are done
[quoted text clipped - 50 lines]
>>> Roy Harvey
>>> Beacon Falls, CT