Solved

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

Posted on 2004-10-03
6
2,349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

696 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