Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Problem moving SQL 2005 system databases

$
0
0

Eventually migrating off 2005 but in the short term I first need to move the user and system databases from NetApp LUNs (D: and L: drives) to C:  My SQL install is build 9.0.4340 (SP3 with security update 6/14/2011). I have successfully moved user DBs as well as msdb, model, and tempdb.  I am following this article:

   https://msdn.microsoft.com/en-us/library/ms345408(v=sql.90).aspx

Per step #7, I had successfully moved the Master DB and restarted SQL in "master-only recovery mode".

Per step #8, I tried to move the Resource database files using the following commands:

   ALTER DATABASE mssqlsystemresource
       MODIFY FILE (NAME=data, FILENAME= 'new_path_of_master\mssqlsystemresource.mdf');
   GO
   ALTER DATABASE mssqlsystemresource
       MODIFY FILE (NAME=log, FILENAME= 'new_path_of_master\mssqlsystemresource.ldf');
   GO

I got the following error:

"Could not locate entry in sysdatabases for database mssqlsystemresource. No entry found with that name. Make sure that the name is entered correctly."

So now my system database move is in an indeterminate state because master DB is on C: drive and the Resource database files are still on D:.  SQL Server appears to be up and running in spite of this.

There are few old articles on this situation but no definitive solution that I found.

A strange side note is that I can't stop the SQL service at this point using Configuration Manager or services applet or net stop command.  It just keeps restarting.  But for now, I mainly need to get around the "Could not locate..." error.


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>