regarding sql query

  • hi,

    while i am trying to run one query i am getting this following error.

    the error is

    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.

    Server: Msg 9002, Level 17, State 1, Line 1

    The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space.

    if any body knows plz tell me.

    thanks in advance,

    cheers,

    ram.

  • What is the query you are running - is it working on a large chunk of data? Try breaking it down from one large transaction to smaller ones

  • tempdb is the system working area of sqlserver.

    Probably it needed to extend one of its files and hasn't been able to do that within the timeout limit.

    Check your tempdb files and set autogrowth to a fixed value in MB !

    (not in percentages !!! because that will add more and more dataspace to the file. going from one mb to maybe more than a gig at a time (which may cause this kind of timeouts))

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • And make sure you have enough space on the disk.

    You might have problems with the query you're running as well.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply