MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 12th, 2004, 10:32 PM
g_janhavi g_janhavi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 8 g_janhavi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow Purge tempdb

The tempdb file grew to such an extent that it is not allowing tables to be created. It throws Error 1101 stating that there is no space on tempdb.

So, I want to create a purging script to purge the existing tempdb transaction logs.


HELP!

Reply With Quote
  #2  
Old April 13th, 2004, 03:40 PM
sypher sypher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Montreal
Posts: 92 sypher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 10 sec
Reputation Power: 5
one easy way is to re-start the server, cuz each time you do it, the tempDb is recreated ,

BUT you should have enough space for it, IT is highly important to have enough space, otherwise your WHOLE system will be slow down.

put a limit, but expand the tempdb

Reply With Quote
  #3  
Old April 15th, 2004, 01:08 PM
g_janhavi g_janhavi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 8 g_janhavi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Sypher,

Yeah I tried but the tempdb was on autogrow and it's ended up occupying 4000K+...my project involves working with tables that contain 2.2M records...so this is something to be expected. The transaction log has taken record of each event that I have ever committed and that's what is occupying space..so I need a script that would purge or compress the prior logs and make room for new ones.

I found a command "dump transaction from tempdb with no log"..didn't work...i think the tables' name or something needs to be included instead of transaction but I'm not sure of the command.

Can someone help me if they know the correct command ??

Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Purge tempdb


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway