How to: Database Service fails to start due to log full of model database

today I got an issue reported by our partners, their database server could not start due to log full of model database, after research, I worked out a solution and wrote it down to look in futher as shown below:

 

Symptom:

Due to log full of model database, the database engine service could not start.

Resolution:

1. Go to cmd prompt and issue NET STOP MSSQLSERVER

2. Start SQL server in single user mode / maintenance mode with the following trace flags

NET START MSSQLSERVER /c /m /T3608

clip_image002

3. Now connect to the SQL engine with ‘sqlcmd’ console and issue the following command

clip_image004

4. Next, issue the follow command and uncomment the rest of the parameters and use the best one for your scenario

clip_image006

USE master;

GO

ALTER DATABASE model

MODIFY FILE

(

    NAME = modellog,

FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA.ldf',

    SIZE = 50MB)

--MAXSIZE = 100MB,

--FILEGROWTH = 5MB

4. Now run the following command to stop&start your SQL server

Net stop mssqlserver && net start mssqlserver

clip_image008

 

Hope it helps the guys need help.

转载于:https://www.cnblogs.com/bigholy/archive/2012/04/27/2473905.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值