Solved

mssqlsystemresource.mdf  file is missing

Posted on 2012-04-12
7
2,799 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL query with cast 38 43
SQL BULK INSERT Comma Delimited Issue 8 50
Need a SQL query that creates a header row and one or more detail rows. 7 34
While in ##Table - Help 4 16
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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