加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

sql-server – 在4 GB sql server DB上自动增长10%是多少?

发布时间:2020-12-12 06:15:48 所属栏目:MsSql教程 来源:网络整理
导读:我收到以下错误: 2011-03-07 21:59:35.73 spid64 Autogrow of file 'MYDB_DATA' in database 'MYDB' was cancelled by user or timed out after 16078 milliseconds. Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly
我收到以下错误:
2011-03-07 21:59:35.73 spid64 Autogrow of file 'MYDB_DATA' in database 'MYDB' was cancelled by user or timed out after 16078 milliseconds.  Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly set a new file size.

我做了一些研究,我发现对于大型数据库,你应该将自动增长设置为固定大小(MB),而不是百分比.我觉得这个数据库不大,我可能无法通过更改此值来解决正确的问题.有没有人有任何意见?谢谢!

我正在使用在Windows Server 2008上运行的SQL Server 2008 RC2

解决方法

您不应该依靠自动增长来管理您的日常需求.您应该在适当的维护窗口期间手动监视和增长数据库.对于意外情况,Autogrow应该是您的安全网.

您还可以查看设置instant file initialization以提高增长操作的速度.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读