Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

TEMPDB LOG FULL

Constantly getting this error on large queries.
Have tried to truncate every 4 hours.
Log is set autogrowth

any ideas?
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

I don't know much in terms of SQL server, but perhaps you will find what your after in this MS article Troubleshooting Insufficient Disk Space in tempdb.
Is it set to simple recovery mode? I believe this will automatically truncate...

ALTER DATABASE tempdb SET RECOVERY SIMPLE
Is it running out of disk space?
Avatar of JElster

ASKER

Option 'RECOVERY' cannot be set in database 'TEMPDB'.

plenty of space...
are you  logged in with raised credentials? Do you have permission to change settings?
Avatar of JElster

ASKER

yes
In SQL Enterprise Manager, right click on the database then choose properties and then Option  and Recovery change from "Full" to "Simple"
Avatar of JElster

ASKER

It is set to Simple

??
did you shrink and truncate your log file and try it again?
SOLUTION
Avatar of mebaby333
mebaby333
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

yes.. it then works then I will get TEMBDB LOG FULL after several queries
Avatar of JElster

ASKER

I have over 300GB of free space on the drive... it makes no sense
Queries return max of 20K records
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

Msg 208, Level 16, State 1, Line 1
Invalid object name 'tempdb.sys.database_files'.
Guess that doesn't work in 2005 then, so you'll have to use longhand:
use tempdb
go
select * from sys.database_files

Open in new window

Avatar of JElster

ASKER

same msg ????????????
In that case just look at the properties in the GUI. Expand System Databases in the Server Explorer, right-click on tempdb, choose Properties and go to the Files page.
Avatar of JElster

ASKER

36MG    tempdev
1 MG   templog
I'm guessing that is the initial size column. What does the auto growth/max size column say?
Avatar of JElster

ASKER

autogrowth 10 % unrestricted
In that case it should be growing until the disk runs out of space. Is the disk filling up when you get the log space error message, or is there still free space on the disk?
Avatar of JElster

ASKER

Plenty of free space 220GB
?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial