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

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

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

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

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

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

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

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

 

Hope it helps the guys need help.

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2021-11-15
  • 2021-09-24
  • 2022-12-23
  • 2022-01-16
  • 2021-08-15
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案