简体   繁体   English

我的SQL Server日志文件的大小有问题

[英]Problem with size of my SQL Server Log file

In my database on SQL 2008 Express Advanced 在我的SQL 2008 Express Advanced数据库中

Recovery Model is full 恢复模型已满
AutoShrink is false 自动收缩是错误的

When I ran sp_spaceused, I got the following; 当我运行sp_spaceused时,得到以下信息;

database_name           db_size         unallocated_space   
FreeLearningTuts        1398.13 MB       0.73 MB

reserved    data           index_size          unused
211216 KB   207024 KB      2944 KB      1248 KB

Out of this, the size of the tables is 150MB but db size shows 1398.13. 其中,表的大小为150MB,但数据库大小显示为1398.13。 It's probably the size of the log file. 它可能是日志文件的大小。 Can you tell what should I do to reduce the size of the Database. 您能告诉我该怎么做以减小数据库的大小。

Does anything look wrong with my DB from the figures above or are these the figures that a healthy db shows? 从上图可以看出我的数据库有什么问题吗?或者这些是健康数据库显示的数字?

Do you do regular log backups? 您会定期进行日志备份吗? If not, the log will keep growing until you hit the maximum db size for SQL Express. 如果没有,日志将一直增长,直到您达到SQL Express的最大数据库大小为止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM