Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15930

Master DB location move error

$
0
0

I was trying to move the master file location from C to D drive and I followed below instructions but when I tried to start the service I got the message that service can be started on the ---I am using SQL 2012

Desired Location:-

-dD:\Data\master.mdf

-lD:\log\master.ldf

But that did not work

Error:- the request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details.

Moving the master Database

To move the master database, follow these steps.

  1. From the Start menu, point to All Programs, point to Microsoft SQL Server, point to Configuration Tools, and then click SQL Server Configuration Manager.
  2. In the SQL Server Services node, right-click the instance of SQL Server (for example, SQL Server (MSSQLSERVER)) and choose Properties.
  3. In the SQL Server (instance_name) Properties dialog box, click the Startup Parameters tab.
  4. In the Existing parameters box, select the –d parameter to move the master data file. Click Update to save the change.

In the Specify a startup parameter box, change the parameter to the new path of the master database.

  1. In the Existing parameters box, select the –l parameter to move the master log file. Click Update to save the change.

In the Specify a startup parameter box, change the parameter to the new path of the master database.

The parameter value for the data file must follow the -d parameter and the value for the log file must follow the -l parameter. The following example shows the parameter values for the default location of the master data file.

-dC:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf

-lC:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

If the planned relocation for the master data file is E:\SQLData, the parameter values would be changed as follows:

-dE:\SQLData\master.mdf

-lE:\SQLData\mastlog.ldf

  1. Stop the instance of SQL Server by right-clicking the instance name and choosing Stop.
  2. Move the master.mdf and mastlog.ldf files to the new location.
  3. Restart the instance of SQL Server.
  4. Verify the file change for the master database by running the following query.

Not sure is it because I am using d drive


Viewing all articles
Browse latest Browse all 15930

Trending Articles



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