Solved

Error "Server: Msg 9002, Level 17, State 6, Line 1

Posted on 2004-10-03
6
2,337 Views
Last Modified: 2007-12-19
Dear expert,
if i have error like this, what should i do ??
"Server: Msg 9002, Level 17, State 6, Line 1
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space."

Thank's

Ozhee.
0
Comment
Question by:Ozhee
6 Comments
 
LVL 11

Expert Comment

by:ram2098
ID: 12214790
Your database Log is full..You need to clear this.

To clear the log, Please run the following command using query analyzer.

backup log dbname --replace dbname with your database name
to disk = 'c:\log.bak'


0
 
LVL 11

Accepted Solution

by:
ram2098 earned 125 total points
ID: 12214795
Other option is to increase the transaction log space for your database.
0
 
LVL 1

Expert Comment

by:AntonG
ID: 12214856
alternatively, I seem to think that you server is running out of hard drive space. TempDB should already be set up to automatically increase the size of its oen files. In addition, the tempdb log file should get flushed every time you restart SQL Server.

I have had this problem on numerous occasions whereby I have had to clear HD space in order to rectify this exact problem.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Ozhee
ID: 12215014
thanks.. i just increase the size of log file.
0
 

Expert Comment

by:rhcellxion
ID: 14915150
I'm having the same problem, but when I try to backup, it tells me that backup and restore are not allowed on tempdb and it terminates.
0
 
LVL 1

Expert Comment

by:mkacos
ID: 15134459
I am having the same problem that rhcellxion is having.  I have plenty of available disk space.  I also believe it is impacting our performance.  Does anyone have the answer?
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

867 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

16 Experts available now in Live!

Get 1:1 Help Now