Solved

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

Posted on 2004-10-03
6
2,335 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
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.

 

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

759 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

19 Experts available now in Live!

Get 1:1 Help Now