如何清理我的数据库大小 [英] how clean my size of database

查看:70
本文介绍了如何清理我的数据库大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我插入数百万条记录,我的mdf文件占用22Gb和ldf 25Gb

i删除我数据库的巨大表格大小并保持这个大小

无变化
我怎么清理这个尺码?

为什么这个尺码显示给我?

i没有任何巨大的桌子!!!



[代表OP更新]

为什么在我删除我的桌子之后会保持相同的尺寸?

[/ updated]

i insert millions of records and my mdf file take 22Gb and ldf 25Gb
i delete huge table size of my database and its remain this size
no changing
how i clean this size?
why this size show to me ?
i do not have any huge table ever !!!

[updated on behalf of the OP]
why after i delete my tables its stay in same size ?
[/updated]

推荐答案





有看一下MSDN如何收缩数据库



如果你想做这个programiticaly,请阅读 DBCC SHRINKDATABASE 命令。



希望它有所帮助。
Hi,

Have a look at the MSDN how to Shrink a Database.

If you want to do this programiticaly,have a read at DBCC SHRINKDATABASE command.

Hope it helps.


这篇关于如何清理我的数据库大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆