Solved

mssqlsystemresource.mdf  file is missing

Posted on 2012-04-12
7
2,714 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
  • 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 29

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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 29

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now