Start SQL Service failed with message: "the log scan number passed to log scan in database 'master' is not valid"
症状:
当安装了VS2010以后,会自带安装上SQL Express,试图启动MSSQL$SQLEXPRESS服务时,遇到"the log scan number passed to log scan in database 'master' is not valid"错误。
原因:
C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Template Data目录下的master.mdf和master.ldf文件被破坏了。
解决方案:
在网上搜索了一下解决方案:
到C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Template Data目录下将master.mdf和master.ldf文件拷贝并覆盖到C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA目录下,重启服务成功!