x
login about faq Site discussion (meta-askssc)

temp db error

Hello,

The tempdb is full and ldf is started growing very fast , due to this the disk is about to run out of space

i run the sqldiag now what next? is there any other solution to control this?

thank you

more ▼

asked Oct 10 '11 at 07:55 AM in Default

pits gravatar image

pits
830 43 76 83

Search on Google for "tempdb full" should point you to alot of solutions, or things to check.

Oct 10 '11 at 10:31 AM Shawn_Melton
(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

If TempDB is filling then there must be a transaction running somewhere that is taking a long time to complete. Try using sp_who and sp_lock to see if this is the case.

In an emergency scenario you could add files onto TempDB to allow the transaction to complete but this int the best way to resolve the issue. You should make sure the transaction causing the problem should be run and why it is taking so long.

more ▼

answered Oct 10 '11 at 08:31 AM

Fatherjack gravatar image

Fatherjack ♦♦
38.8k 55 69 104

Oct 10 '11 at 08:47 AM ThomasRushton ♦
(comments are locked)
10|1200 characters needed characters left

You need to BACKUP LOG [yourDb] TO DISK = N'BackupyourDb.trn' GO DBCC SHRINKFILE(yourdbldf_file, 1)

and then figure out what's causing this

more ▼

answered Oct 10 '11 at 08:34 AM

alexsdba gravatar image

alexsdba
221 1 1 4

Not for tempdb.

Oct 10 '11 at 08:44 AM ThomasRushton ♦

Thank you Thomas i haven't had my coffee at the time of posting and thought it was a transaction log question :).

Oct 10 '11 at 10:34 AM alexsdba

@alexsdba - Oh, I know that problem! :-)

Oct 10 '11 at 11:11 AM ThomasRushton ♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x50
x5
x1

asked: Oct 10 '11 at 07:55 AM

Seen: 458 times

Last Updated: Oct 10 '11 at 07:55 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.