SqlTipsDBWontShrink
You may run into a database that won't shrink, there's several "obvious" problems that are blogged about everywhere - However sometimes it's more complex.
First let me go over the basic things - Make sure all of these aren't your problem:
Now, assuming you fully understand the above things and your database STILL won't shrink there are some things you should know and check: A view sys.databases contains a few fields:
We can run the following query to get a status: select name, log_reuse_wait, log_reuse_wait_desc from sys.databases where name = 'dbname' You may receive a log_reuse_wait status of 6 - this means replication is behind. HOWEVER I was troubleshooting this today on a database without replication configured. Something is clearly wrong in the server setup to have this "confusion" in the database. There's a Microsoft KB article that describes how to manually remove a publication / replication - The overly simple method is: sp_removedbreplication '<Database name>' References: Created by: steveradich last modification: Tuesday 15 of September, 2009 [07:49:45 UTC] by steveradich |
Login Search Our Sponsors
Server Colocation Specials
Dedicated From $49/mo ASPDeveloper.Net is part of BitShop and hosted by BitShop Need a Virtual Server 2005 Hosted Account? Why not trust ASPDeveloper's Team? We're a division of www.bitshop.com ASP.Net 2.0 Developers Available - The exact same people that write here on this site: http://www.bitshop.com ASPDeveloper.Net is part of BitShop Quality Business Internet Technology Shop - http://www.bitshop.com Sponsor of site and hosting Read the blogs, request we set up one for you FREE http://www.aspdeveloper.net |