x

shrink db not working

Hi I created a db then add many tables , insert into them a lot of rows , it reached 70MB

then i deleted all the tables

but when i shrink my db , it did not shrink! it stay 70MB

more ▼

asked Dec 10, 2009 at 04:24 AM in Default

avatar image

MIKE 7
1 2 2 2

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Sounds like there are transactions (probably the DELETE's!!) which are still in the transaction log. Run a transaction log backups, and then try the shrink again. If that doesn't work you probably have a "stuck" transaction - stop/starting SQL Server will usually clear that (by forcing a checkpoint on the DB), but if not please come back and ask again.

more ▼

answered Dec 10, 2009 at 05:37 AM

avatar image

Kristen ♦
2.2k 7 11 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x52
x42

asked: Dec 10, 2009 at 04:24 AM

Seen: 1081 times

Last Updated: Dec 10, 2009 at 05:37 AM

Copyright 2016 Redgate Software. Privacy Policy