|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Saturday, October 06, 2012 3:38 AM
Points: 23,
Visits: 20
|
|
Hey Pals!
I moved My MSDB database to another location. after that i tried to start my server but unfortunately it can't 
i done it by following steps
step:1 SELECT NAME, PHYSICAL_NAME AS 'PhysicalFilePath', STATE_DESC AS 'DB Status' FROM SYS.MASTER_FILES
step:2 SELECT ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBData, FILENAME= 'C:\SQLDB\Demo\MSDBData.mdf' ) GO ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBLog, FILENAME= 'C:\SQLDB\Demo\MSDBLog.ldf' ) GO
step:3 Stoped SQL Server service Step 4: moved MSDB database to new location Step 5: started SQL Server service.
but i got error 1814 here
Guys could you please help me?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:29 AM
Points: 5,121,
Visits: 20,359
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:39 PM
Points: 5,242,
Visits: 11,255
|
|
Konuri Dinesh (10/6/2012)
Hey Pals! I moved My MSDB database to another location. after that i tried to start my server but unfortunately it can't  i done it by following steps step:1 SELECT NAME, PHYSICAL_NAME AS 'PhysicalFilePath', STATE_DESC AS 'DB Status' FROM SYS.MASTER_FILES step:2 SELECT ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBData, FILENAME= 'C:\SQLDB\Demo\MSDBData.mdf' ) GO ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBLog, FILENAME= 'C:\SQLDB\Demo\MSDBLog.ldf' ) GO step:3 Stoped SQL Server service Step 4: moved MSDB database to new location Step 5: started SQL Server service. but i got error 1814 here Guys could you please help me? Can you post full details of the error messages
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 4:07 AM
Points: 180,
Visits: 516
|
|
you might want to be a little careful while playing around with sys databases. If msdb is not online and you recycle the SQL services, your tempDB will also be not created because validations and procedures to build TempDB again are all in MSDB only.
Please let us know what were the error logs when you moved the mdf and ldf files.
I would say restore the .bak file with move option it would easy.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 7:57 AM
Points: 415,
Visits: 1,689
|
|
Konuri Dinesh (10/6/2012)
Hey Pals! I moved My MSDB database to another location. after that i tried to start my server but unfortunately it can't  i done it by following steps step:1 SELECT NAME, PHYSICAL_NAME AS 'PhysicalFilePath', STATE_DESC AS 'DB Status' FROM SYS.MASTER_FILES step:2 SELECT ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBData, FILENAME= 'C:\SQLDB\Demo\MSDBData.mdf' ) GO ALTER DATABASE MSDB MODIFY FILE ( NAME = MSDBLog, FILENAME= 'C:\SQLDB\Demo\MSDBLog.ldf' ) GO step:3 Stoped SQL Server service Step 4: moved MSDB database to new location Step 5: started SQL Server service. but i got error 1814 here Guys could you please help me?
Please post entire error logs from eventviewer from that time stamp. Often this is related to security because the service account might not have permission on the new location. Please post all the logs from that time stamp.
Chandan
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 9:39 AM
Points: 2,425,
Visits: 3,401
|
|
To which location you moved the files?? Are they the same location where tempdb files resides?
After moving to the new location are you sure you have sufficient space under that drive?
|
|
|
|