Mssql限制了数据库文件的大小,要如何取消限制

我的数据库是200M的,但用到60M就用不了了,论坛发帖回帖都不行,写不进去。。。。听说是MSSQL限制了数据库文件的大小,请问取消限制数据库文件大小的SQL语句是什么哦?谢谢

这通常发生在用户端的数据库日志文件达到允许的最大值。 Remember that database log files are different than web log files.请记住,数据库日志文件比Web日志文件的不同。 Usually on our server maximum allowed log file size is 50 MB.通常为50 MB的最大允许我们的服务器上日志文件的大小。 If client's log file size reach this limit the above error message "database connection failed" occurs.如果客户端的日志文件的大小达到此限制,上述错误信息“数据库连接失败”的发生。

This problem can be resolved in three different ways.这个问题可以解决三种不同的方式。

1) We shrink customer's database transaction log files. 1)我们缩小客户的数据库事务日志文件。 In this event, some of the old transactions are removed from transaction log files.在这种情况下,旧的一些交易将被删除事务日志文件。 Please note that there is no database information lost .请注意, 没有数据库信息丢失 。

Here is the procedure for shrinking database log files:下面是收缩数据库日志文件的过程:

Step 1 :- Open Query Analyzer of MSSQL. 第1步 : -分析仪mssql的打开查询。
Step 2 :- Backup Transaction log using command backup log DBNAME with truncate_only 第2步 : -备份事务日志使用日志备份的数据库名与truncate_only命令
Step 3 :- Shrink Transaction log using command DBCC SHRINKFILE (DBName, size) - This would shrink logs to the desired size. 第3步 : -收缩事务日志使用命令DBCC SHRINKFILE(数据库名,大小) -这将收缩日志到所需的大小。

2) Another way is increasing the allowed transaction log limit from MSSQL 2005 Enterprise manager. 2)另一种方式是允许的交易越来越多,从2005年企业管理器日志mssql的限制。 Usually 50 MB is the standard space allocated for transaction log files.通常为50 MB的是标准的事务日志文件空间分配。 By login to Enterprise manager, you can increase that to 50 MB.通过登录到企业管理器,你能够增加为50 MB。

Here is the procedure ...下面是程序...

Step 1:- Login to Enterprise manager of MSSQL. 第1步: -登录到企业mssql的经理。
Step 2:- Right click on DBname and select Properties. 步骤2: -右键属性点击数据库名,然后选择。
Step 3:- Click on "Trasaction Log" tab. 第3步: -选项卡点击“Trasaction日志”。
Step 4:- Select "Restrict File Growth" option. 第4步: -选择“文件增长限制”选项。
Step 5 :- Provide desired size limit in MB. 第五步: -提供所需的大小限制,以MB。

3) One more option is to allow customer's transaction log file to incrementally grow by x % when it reaches the limit. 3)多一个选择,是让客户的交易日志文件,以逐步由x%的速度增长,当它到达了极限。 So, if customer reaches the limit, log file size will be increased automatically by x%.因此,如果客户达到极限,日志文件的大小将自动增加由x%。

Here is the procedure to do that:下面是步骤做:

Step 1:- Login to Enterprise manager of MSSQL. 第1步: -登录到企业mssql的经理。
Step 2:- Right click on DBname and select Properties. 步骤2: -右键属性点击数据库名,然后选择。
Step 3:- Click on "Trasaction Log" tab. 第3步: -选项卡点击“Trasaction日志”。
Step 4 :- Click on Check box "Automatically growth file" checkbox. 第4步: -盒点击检查“自动增长文件”复选框。
Step 5:- Select "By percent" option and provide desired size limit in %. 第五步: -选择“按百分比”选项,并提供所需的大小限制在%。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-01-04
应该不会这么小吧。。我的数据库都快2个G了。。
你看下磁盘空间

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网