最近不知道为什么sql server2000 突然启动不了,看了MSSQL/LOG/ERRORLOG 文件
Starting up database 'master'.
错误: 9003,严重性: 20,状态: 1。
The log scan number (195:88:1) passed to log scan in database 'master' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.
是master.dbf文件的问题
解决方法:
1、从其它地方拷贝 master.mdf 和 mastlog.ldf 替换Microsoft SQL Server/MSSQL/Data 下面的两个文件
2、重新启动服务和企业管理器,一切就 OK 了。