Redian新闻
>
Re: Is there any easy way to truncate the LDF file of SQL SERVER?
avatar
Re: Is there any easy way to truncate the LDF file of SQL SERVER?# Database - 数据库
a*a
1
not ridiculous, if you have tons of transactions.
have you tried DBCC sth..
avatar
y*e
2
LDF has all the transaction log, so it keeps growing when you use your
database. You can do a backup to truncate the log. There seems to be a setting
that let you to specify how many log files and how often you can have your log
file truncated. DBCC can help of course.

【在 a*****a 的大作中提到】
: not ridiculous, if you have tons of transactions.
: have you tried DBCC sth..

avatar
d*o
3
Ok, Calvin, here is your answer:
First of all which version of SQL you have?
You can do DBCC SHRINKDATABASE first ( note it is not DBCC ShrinkDB)
Then do a full backup
Then do DBCC SHRINKFILE
Then you should be fine.
For later maintainence, you can run backup log every 30 minutes +/- depends
your transaction load, and it should keep you log small.
David Gao
MCSE, MCDBA

setting
log

【在 y***e 的大作中提到】
: LDF has all the transaction log, so it keeps growing when you use your
: database. You can do a backup to truncate the log. There seems to be a setting
: that let you to specify how many log files and how often you can have your log
: file truncated. DBCC can help of course.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。