dbTalk Databases Forums  

Changing drive letter

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Changing drive letter in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
amnésia
 
Posts: n/a

Default Changing drive letter - 07-23-2004 , 05:51 AM






Hi there. I have to change the drive letter where SQL server have his
datfiles (master included). If I do that, ob the SQL fail to start, becouse
it's unable to find the master datfiles. Is it possible changing driver
letter without reinstalling the complete product?

BR
amnésia




Reply With Quote
  #2  
Old   
Tony N.
 
Posts: n/a

Default Re: Changing drive letter - 07-23-2004 , 05:26 PM






"amnésia" <secondotetidoilmioindirizzocosilospammi (AT) nondirecazzate (DOT) it> wrote

Quote:
Hi there. I have to change the drive letter where SQL server have his
datfiles (master included). If I do that, ob the SQL fail to start, becouse
it's unable to find the master datfiles. Is it possible changing driver
letter without reinstalling the complete product?

BR
amnésia
From KB224071


Moving the master database
Change the path for the master data and log files in SQL Server Enterprise Manager.

NOTE: You may optionally change the location of the error log here as well.
Right-click the SQL Server in Enterprise Manager and click Properties.
Click the Startup Parameters button and you will see the following entries:
-dD:\MSSQL7\data\master.mdf
-eD:\MSSQL7\log\ErrorLog
-lD:\MSSQL7\data\mastlog.ldf

-d is the fully qualified path for the master database data file.

-e is the fully qualified path for the error log file.

-l is the fully qualified path for the master database log file.
Change these values as follows:
Remove the current entries for the Master.mdf and Mastlog.ldf files.
Add new entries specifying the new location:
-dE:\SQLDATA\master.mdf
-lE:\SQLDATA\mastlog.ldf

Stop SQL Server.
Copy the Master.mdf and Mastlog.ldf files to the new location (E:\Sqldata).
Restart SQL Server.


Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Changing drive letter - 07-23-2004 , 05:28 PM



amnésia (secondotetidoilmioindirizzocosilospammi (AT) nondirecazzate (DOT) it) writes:
Quote:
Hi there. I have to change the drive letter where SQL server have his
datfiles (master included). If I do that, ob the SQL fail to start,
becouse it's unable to find the master datfiles. Is it possible changing
driver letter without reinstalling the complete product?
Could try playing with the registry keys in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ Setup.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.