How To Move Sharepoint Server 2007 Database To Another Drive?
procedure of moving sharepoint sql content data os drive to other drive
step1: identify source data location
sp_helpdb WSS_Content_5656
note: source data located into Operating system drive(C:/)
step2: take back up
backup database [WSS_Content_5656] to disk ='F:\WSS_Content_5656_11082010.bak' with stats=5
note: backup will stored into F:\ drive
step3:
alter database [WSS_Content_5656] set offline with rollback immediate
step4:
exec sp_detach_db 'WSS_Content_5656','true'
note: after detach cut the .mdf and .ldf file in os drive and copy into desire drive(d:\)
and attach to content db
step5:
exec sp_attach_db @dbname=N'WSS_Content_5656',@filename1=N'D:\WSS_Content_5656.mdf'
,@filename2=N'D:\WSS_Content_5656_log.ldf'
step6: check you are desired location
No comments:
Post a Comment