Results 1 to 5 of 5

Thread: Tempdb grow too much

  1. #1
    Join Date
    May 2003
    Posts
    3

    Tempdb grow too much

    I've a big problem:
    The tempdb grow too much and don't shrink automatically.
    the tempdb for a transaction can reach 11 Gb and don't schrink.
    How can i avoid this problem???

    bensmail

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    It could be caused by a long running transaction. Figure out what is running when tempdb grows.

    Also check for open transactions using dbcc opentran. SQL Server can't shrink the database if there is an open transaction.

    Make sure that tempdb database is running in simple recovery model.

  3. #3
    Join Date
    May 2003
    Posts
    3
    When i run a transaction the tempdb growth. After a commit the tempdb don't shrink, and there is no running transaction.... and when i run a new transaction it's hang

    Bensmail

  4. #4
    Join Date
    May 2003
    Posts
    3
    I heard about "truncate log on chekpoint" how can i use this?
    if i set this param means it will be shrink automatically after a commit?


    bensmail

  5. #5
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    In Enterprise Manager, right click on tempdb and select properties, go to options tab and select Simple in the recovery model. this is equivalent to truncate log on checkpoint.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •