Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Dtabase clean upDtabase clean up
Previous
 
Next
New Post
4/13/2010 11:57 AM
 

Thanks Paul.

I ran the scripts and delete all the entry from search related which was the biggest one

but my database is still 190 MB

I have published the database name

i ran delete from [tablename] and it says 34000 recorde effected but still the size is 190 MB from 200 MB

Am i doing something wrong

 

Kundan

 

 
New Post
4/13/2010 12:50 PM
 

 Hello Kundan,

One important factor when you try to decrease the size of a database is that deleting items from tables will normally not automatically decrease the filesize of the database file. Deleting items is only one step of the road, unfortunately. Second step is to perform a "shrink" of the database. You should be able find your way through Godaddy to find out how to shrink your database (I usually just do it via my SQL Management Studio via remote connection but that might not be possible with a shared hosting like GoDaddy).

Rgrdz

</P>

 
New Post
4/13/2010 1:36 PM
 

That's because the newly freed up space has not be returned to the system. Run the following (replace your DB name), this will give back the free space:

BACKUP LOG [YourDB] WITH TRUNCATE_ONLY
TRUNCATE TABLE eventlog
TRUNCATE TABLE sitelog
TRUNCATE TABLE schedulehistory
DBCC SHRINKDATABASE (YourDB);



 
New Post
4/20/2010 8:43 AM
 

Thanks Peter.

I have restore the database on my local SQL Server  2005 . Can you please post the command to shrink the database after deleting the table records. I did the one suggested by Csmith but it does not freed much.

 

Any help will be apprecuiated

 

Thanks

 

 
New Post
4/20/2010 10:53 AM
 

Thanks,

I did run the scripts but still the database size is still same

Plz help

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Dtabase clean upDtabase clean up


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out