Solved

mssqlsystemresource.mdf  file is missing

Posted on 2012-04-12
7
2,929 Views
Last Modified: 2012-04-17
Our network admin applied a service pack for SQL Server 2008 on the db server.
Now the SQL server main service and agent service will not start.  Looked at the log file which indicates that mssqlsystemresource.mdf file cannot be opened.  I went and looked in the BINN folder and sure enough it's not there.

How do I recover this?

What to do?

Thx,

Eric
0
Comment
Question by:Eric3141
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 2

Author Comment

by:Eric3141
ID: 37837740
I also enabled the File Services role on the server itself then disabled it.  Don't know if this may have caused this or not.

From previous log files I see that the mssqlsystemresource.mdf must have been there before because sql server had started successfully before.
0
 
LVL 30

Expert Comment

by:Randy Downs
ID: 37837774
Maybe this will help

http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/4febbbb9-7cb4-4167-bfe7-194d60c7e5d7/

Start the instance of SQL Server in master-only recovery mode by entering one of the following commands at the command prompt. The parameters specified in these commands are case sensitive. The commands fail when the parameters are not specified as shown.

    NET START MSSQL$SQLEXPRESS /f /T3608


Then start SQLCMD:


SQLCMD -S .\SQLEXPRESS


Then run these commands from the SQLCMD prompt:


1> ALTER DATABASE mssqlsystemresource
2> MODIFY FILE (name = 'data',
3> FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\BINN\mssqlsystemresource.mdf')
4> go
The file "data" has been modified in the system catalog. The new path will be used the next time the database is started.
1> ALTER DATABASE mssqlsystemresource
2> MODIFY FILE (name = 'log',
3> FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\BINN\mssqlsystemresource.ldf')
4> go
The file "log" has been modified in the system catalog. The new path will be used the next time the database is started.
1> exit


Exit SQLCMD and run


NET STOP MSSQL$SQLEXPRESS


Now start SQL Server from the SQL Configuration Manager in the regular way.
0
 
LVL 2

Author Comment

by:Eric3141
ID: 37837835
Number-1:  the mssqlsystemresource.mdf file is not on any of the drives -- I have searched and came up with nadda.  From above it looks like you're thinking the file is actually there but SQL Server is looking for it in the wrong location.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 30

Expert Comment

by:Randy Downs
ID: 37837876
Yeah I though maybe the path was wrong.

Are all the network resources available? Is it possible the file was on a network drive that is no longer attached?
0
 
LVL 2

Assisted Solution

by:Eric3141
Eric3141 earned 0 total points
ID: 37838174
I just did a repair on the SQL Server 2008 R2 installation and can now restart the services.
0
 
LVL 2

Accepted Solution

by:
Eric3141 earned 0 total points
ID: 37838182
The repair re-created mssqlsystemresource.mdf & mssqlsystemresource.ldf files in the BINN folder.
0
 
LVL 2

Author Closing Comment

by:Eric3141
ID: 37854926
I found the solution to the problem.  I posted it here so that it gets included in the knowledge base for others later.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question