![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using sql 2005 standard edition, and i want to move my system databases from the C drive to a new E drive I have setup on my windows 2003 server. I have first moved the tempdb database to the E drive by using the below method: 1 using the following code: Use master; Go Alter DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf' ); GO ALter DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'E:\SQLLog\templog.ldf' ); GO ... This above method worked fine in moving the tempdb database, but I now want to move the other system databases. I started with the model database. I used the above the method, but when i stopped the sql server, I moved the model databases files to the new location mentioned in the code, but when I now start the sql service it does not start. The error message I get is : The request failed or the service did not respond in a timely fashion. In the event log the error reads Operating system error 2 (error not found) occured while creating or opening file 'E:\sql\data\modellog.mdf'. |
|
But more importantly I need to know the best way to move the system databases like model, master, msdb to a new location. I have checked some microsoft articles but they dont seem to work.. Has anyone moved their system databases on sql 2005 to a different location and worked. I should just need a list of steps. |
#3
| |||
| |||
|
|
guv (guv@) writes: I am using sql 2005 standard edition, and i want to move my system databases from the C drive to a new E drive I have setup on my windows 2003 server. I have first moved the tempdb database to the E drive by using the below method: 1 using the following code: Use master; Go Alter DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf' ); GO ALter DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'E:\SQLLog\templog.ldf' ); GO ... This above method worked fine in moving the tempdb database, but I now want to move the other system databases. I started with the model database. I used the above the method, but when i stopped the sql server, I moved the model databases files to the new location mentioned in the code, but when I now start the sql service it does not start. The error message I get is : The request failed or the service did not respond in a timely fashion. In the event log the error reads Operating system error 2 (error not found) occured while creating or opening file 'E:\sql\data\modellog.mdf'. Error 2 is (NET HELPMSG 2) The system cannot find the file specified. I note that above you have E:\SQLData, the error message says E:\SQL\Data. But more importantly I need to know the best way to move the system databases like model, master, msdb to a new location. I have checked some microsoft articles but they dont seem to work.. Has anyone moved their system databases on sql 2005 to a different location and worked. I should just need a list of steps. Have you search in Books Online on "Moving system databases"? There is a good topic for this. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#4
| |||
| |||
|
|
Thanks for the books online, but are you aware of the steps on how to move, as I followed some online articles before and they have not worked |
|
Thanks for the books online, but are you aware of the steps on how to move, as I followed some online articles before and they have not worked "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9D43EABE6EBC7Yazorman (AT) 127 (DOT) 0.0.1... guv (guv@) writes: I am using sql 2005 standard edition, and i want to move my system databases from the C drive to a new E drive I have setup on my windows 2003 server. I have first moved the tempdb database to the E drive by using the below method: 1 using the following code: Use master; Go Alter DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf' ); GO ALter DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'E:\SQLLog\templog.ldf' ); GO ... This above method worked fine in moving the tempdb database, but I now want to move the other system databases. I started with the model database. I used the above the method, but when i stopped the sql server, I moved the model databases files to the new location mentioned in the code, but when I now start the sql service it does not start. The error message I get is : The request failed or the service did not respond in a timely fashion. In the event log the error reads Operating system error 2 (error not found) occured while creating or opening file 'E:\sql\data\modellog.mdf'. Error 2 is (NET HELPMSG 2) The system cannot find the file specified. I note that above you have E:\SQLData, the error message says E:\SQL\Data. But more importantly I need to know the best way to move the system databases like model, master, msdb to a new location. I have checked some microsoft articles but they dont seem to work.. Has anyone moved their system databases on sql 2005 to a different location and worked. I should just need a list of steps. Have you search in Books Online on "Moving system databases"? There is a good topic for this. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |