Relocate Sharepoint Database

These instructions to relocate your Companyweb / Sharepoint database comes from David Copeland at Microsoft.

Stop the Companyweb site as well as any other web sites that have been extended with Windows SharePoint Services (WSS).

Create the new directory/drive where the databases will be moved to (in the example below is e:\newlocation)

I would suggest that the directory have the same permissions as the
\program files\microsoft sql server\mssql$sharepoint\data directory has

Replace “servername” with the name of your server.

The following section will detatch (the WSS config and content databases)
c:> OSQL -E -S servername\sharepoint <Enter>
sp_detach_db ‘STS_Config’ <Enter>
go <Enter>
sp_detach_db ‘STS_servername_1’ <Enter>
go <Enter>
Once the databases are detached, then using Explorer or another command prompt you should be able to copy the databases to their new location. (would suggest copying instead of moving just in case there is any kind of problem)
sp_attach_db @dbname = ‘STS_Config’, @filename1= ‘E:\new location\STS_config.mdf’, @filename2 = ‘E:\new
 location\STS_Config_log.ldf’ <Enter>
go <Enter>
sp_attach_db @dbname = ‘STS_servername_1’, @filename1= ‘E:\new location\STS_servername_1.mdf’, @filename2 = ‘E:\new location\STS_servername_1_log.ldf’ <Enter>
go <Enter>
exit
Restart any of the web sites that had been stopped previously

Hope that helps,
David Copeland
Microsoft Small Business Server Support

2 thoughts on “Relocate Sharepoint Database

  1. http://anzwers.org/trade/allthepills/more_medication.html http://anzwers.org/trade/allthepills/side_effects_ambien.html http://anzwers.org/trade/allthepills/more_info_ambien.html http://anzwers.org/trade/allthepills/ambien.html http://anzwers.org/trade/allthepills/celebrex.html http://anzwers.org/trade/allthepills/how_to_buy.html http://anzwers.org/trade/allthepills/effexor.html http://anzwers.org/trade/allthepills/sitemap.html http://anzwers.org/trade/allthepills/hydrocodone.html http://anzwers.org/trade/allthepills/FDA_rules.html http://anzwers.org/trade/allthepills/lipitor.html http://anzwers.org/trade/allthepills/side_effects_valium.html http://anzwers.org/trade/allthepills/tramadol.html http://anzwers.org/trade/allthepills/side_effects_celebrex.html http://anzwers.org/trade/allthepills/more_info_celebrex.html http://anzwers.org/trade/allthepills/shipping_info.html http://anzwers.org/trade/allthepills/side_effects_lipitor.html http://anzwers.org/trade/allthepills/side_effects_tramadol.html http://anzwers.org/trade/allthepills/side_effects_effexor.html http://anzwers.org/trade/allthepills/more_info_effexor.html http://anzwers.org/trade/allthepills/side_effects_hydrocodone.html http://anzwers.org/trade/allthepills/more_info_hydrocodone.html http://anzwers.org/trade/allthepills/more_info_lipitor.html http://anzwers.org/trade/allthepills/index.html http://anzwers.org/trade/allthepills/medication_prices.html http://anzwers.org/trade/allthepills/side_effects_viagra.html http://anzwers.org/trade/allthepills/side_effects_vicodin.html http://anzwers.org/trade/allthepills/side_effects_xanax.html http://anzwers.org/trade/allthepills/more_info_tramadol.html http://anzwers.org/trade/allthepills/valium.html http://anzwers.org/trade/allthepills/viagra.html http://anzwers.org/trade/allthepills/more_info_viagra.html http://anzwers.org/trade/allthepills/vicodin.html http://anzwers.org/trade/allthepills/more_info_vicodin.html http://anzwers.org/trade/allthepills/more_info_valium.html http://anzwers.org/trade/allthepills/xanax.html http://anzwers.org/trade/allthepills/more_info_xanax.html http://www.cialis-buy-online.bigsitecity.com/index.html http://www.cialis-buy-online.bigsitecity.com/cialis.html http://www.cialis-buy-online.bigsitecity.com/anti_cialis_impotence.html http://www.cialis-buy-online.bigsitecity.com/approval-cialis.html http://www.cialis-buy-online.bigsitecity.com/approval-cialis-fda.html http://www.cialis-buy-online.bigsitecity.com/avodart_cialis_clomid_diflucan_dostinex_gluco.html http://www.cialis-buy-online.bigsitecity.com/best_cialis_price.html http://www.cialis-buy-online.bigsitecity.com/buy-canada-cialis.html http://www.cialis-buy-online.bigsitecity.com/buycheapcialis.html http://www.cialis-buy-online.bigsitecity.com/buy-cialis.html http://www.cialis-buy-online.bigsitecity.com/buy_cialis_generic.html http://www.cialis-buy-online.bigsitecity.com/buy_cialis_generic_online.html http://www.cialis-buy-online.bigsitecity.com/buycialisonline.html http://www.cialis-buy-online.bigsitecity.com/bycialismarchposted.html http://www.cialis-buy-online.bigsitecity.com/canada-cialis.html http://www.cialis-buy-online.bigsitecity.com/canadacialisgeneric.html http://www.cialis-buy-online.bigsitecity.com/canadian-cialis.html http://www.cialis-buy-online.bigsitecity.com/cheap_cialis.html http://www.cialis-buy-online.bigsitecity.com/cheap-generic-cialis.html http://www.cialis-buy-online.bigsitecity.com/cheapest-cialis.html http://www.cialis-buy-online.bigsitecity.com/cheapestcialisgeneric.html http://www.cialis-buy-online.bigsitecity.com/cheapest-cialis-price.html http://www.cialis-buy-online.bigsitecity.com/cialis-20mg.html http://www.cialis-buy-online.bigsitecity.com/cialis-co-drug-eli-impotence-lilly.html http://www.cialis-buy-online.bigsitecity.com/cialis-com.html http://www.cialis-buy-online.bigsitecity.com/cialiscommercial.html http://www.cialis-buy-online.bigsitecity.com/cialis-company.html http://www.cialis-buy-online.bigsitecity.com/cialis_compare_levitra_viagra.html http://www.cialis-buy-online.bigsitecity.com/cialis_comparison_levitra_viagra.html http://www.cialis-buy-online.bigsitecity.com/cialis_comparison_viagra.html http://www.cialis-buy-online.bigsitecity.com/cialiscost.html http://www.cialis-buy-online.bigsitecity.com/cialis_coupon.html http://www.cialis-buy-online.bigsitecity.com/cialisdaynext.html http://www.cialis-buy-online.bigsitecity.com/cialisdosage.html http://www.cialis-buy-online.bigsitecity.com/cialis-dose.html http://www.cialis-buy-online.bigsitecity.com/cialisdrug.html http://www.cialis-buy-online.bigsitecity.com/cialisdrugimpotence.html http://www.cialis-buy-online.bigsitecity.com/cialis-eli-lilly.html http://www.cialis-buy-online.bigsitecity.com/cialis-erectile-dysfunction.html http://www.cialis-buy-online.bigsitecity.com/cialiseuropeget.html http://www.cialis-buy-online.bigsitecity.com/cialis_experience.html http://www.cialis-buy-online.bigsitecity.com/cialis-for-sale.html http://www.cialis-buy-online.bigsitecity.com/cialis-for-woman.html http://www.cialis-buy-online.bigsitecity.com/cialis-forum.html http://www.cialis-buy-online.bigsitecity.com/cialisfreesample.html http://www.cialis-buy-online.bigsitecity.com/cialis-free-trial.html http://www.cialis-buy-online.bigsitecity.com/cialisgenericviagra.html http://www.cialis-buy-online.bigsitecity.com/cialis-info.html http://www.cialis-buy-online.bigsitecity.com/cialisinformation.html http://www.cialis-buy-online.bigsitecity.com/cialis-introducing.html http://www.cialis-buy-online.bigsitecity.com/cialislevitra.html http://www.cialis-buy-online.bigsitecity.com/cialislevitraviagravsvs.html http://www.cialis-buy-online.bigsitecity.com/cialislevitravs.html http://www.cialis-buy-online.bigsitecity.com/cialislilly.html http://www.cialis-buy-online.bigsitecity.com/cialis-lowest-price.html http://www.cialis-buy-online.bigsitecity.com/cialis-medication.html http://www.cialis-buy-online.bigsitecity.com/cialismexico.html http://www.cialis-buy-online.bigsitecity.com/cialisnewviagra.html http://www.cialis-buy-online.bigsitecity.com/cialis-news.html http://www.cialis-buy-online.bigsitecity.com/cialisonline.html http://www.cialis-buy-online.bigsitecity.com/cialisonlinediscount.html http://www.cialis-buy-online.bigsitecity.com/cialis_online_pharmacy.html http://www.cialis-buy-online.bigsitecity.com/cialis_overnight.html http://www.cialis-buy-online.bigsitecity.com/cialispharm.html http://www.cialis-buy-online.bigsitecity.com/cialis_pharmacy.html http://www.cialis-buy-online.bigsitecity.com/cialis-pill.html http://www.cialis-buy-online.bigsitecity.com/cialis_prescription.html http://www.cialis-buy-online.bigsitecity.com/cialis_prescription_online.html http://www.cialis-buy-online.bigsitecity.com/cialisprice.html http://www.cialis-buy-online.bigsitecity.com/cialis_review.html http://www.cialis-buy-online.bigsitecity.com/cialis-sales.html http://www.cialis-buy-online.bigsitecity.com/cialis_sample.html http://www.cialis-buy-online.bigsitecity.com/cialis-side-effects.html http://www.cialis-buy-online.bigsitecity.com/cialissofttab.html http://www.cialis-buy-online.bigsitecity.com/cialis_story.html http://www.cialis-buy-online.bigsitecity.com/cialis_tablet.html http://www.cialis-buy-online.bigsitecity.com/cialistadalafil.html http://www.cialis-buy-online.bigsitecity.com/cialis-testimonials.html http://www.cialis-buy-online.bigsitecity.com/cialisuk.html http://www.cialis-buy-online.bigsitecity.com/cialis_uprima_viagra.html http://www.cialis-buy-online.bigsitecity.com/cialis_versus_viagra.html http://www.cialis-buy-online.bigsitecity.com/cialis-vs-viagra.html http://www.cialis-buy-online.bigsitecity.com/cialiswesternopen.html http://www.cialis-buy-online.bigsitecity.com/cialis_western_open_ticket.html http://www.cialis-buy-online.bigsitecity.com/compare_viagra_to_cialis.html http://www.cialis-buy-online.bigsitecity.com/discount-cialis.html http://www.cialis-buy-online.bigsitecity.com/discount-generic-cialis.html http://www.cialis-buy-online.bigsitecity.com/free_cialis.html http://www.cialis-buy-online.bigsitecity.com/generic_cialis.html http://www.cialis-buy-online.bigsitecity.com/generic-cialis-online.html http://www.cialis-buy-online.bigsitecity.com/genericcialisprice.html http://www.cialis-buy-online.bigsitecity.com/liquid-cialis.html http://www.cialis-buy-online.bigsitecity.com/low_cost_cialis.html http://www.cialis-buy-online.bigsitecity.com/medication_prescription_viagra_propecia_cialis_man_health_womens_health_discount_consultation_pharmacyovernight_delivery.html http://www.cialis-buy-online.bigsitecity.com/mexicancialis.html http://www.cialis-buy-online.bigsitecity.com/onlinecialis.html http://www.cialis-buy-online.bigsitecity.com/ordercialis.html http://www.cialis-buy-online.bigsitecity.com/order-cialis-online.html http://www.cialis-buy-online.bigsitecity.com/purchase_cialis.html http://www.cialis-buy-online.bigsitecity.com/viagra_cialis.html http://www.cialis-buy-online.bigsitecity.com/viagra-cialis-levitra.html http://phv.lx.ro/index.html http://phv.lx.ro/viagra.html http://phv.lx.ro/100mg-viagra.html http://phv.lx.ro/best_price_viagra.html http://phv.lx.ro/blindnessviagra.html http://phv.lx.ro/buy-cheap-generic-viagra.html http://phv.lx.ro/buy-generic-viagra.html http://phv.lx.ro/buyviagra.html http://phv.lx.ro/buy-viagra-cheap.html http://phv.lx.ro/buy_viagra_now.html http://phv.lx.ro/buy-viagra-on-line.html http://phv.lx.ro/buy_viagra_online.html http://phv.lx.ro/buy-viagra-uk.html http://phv.lx.ro/buying_viagra.html http://phv.lx.ro/buyingviagraonline.html http://phv.lx.ro/cheapgenericviagra.html http://phv.lx.ro/cheap-viagra.html http://phv.lx.ro/cheap-viagra-online.html http://phv.lx.ro/cheapviagrauk.html http://phv.lx.ro/cheapest_generic_viagra.html http://phv.lx.ro/cheapestviagra.html http://phv.lx.ro/cheapestviagraprice.html http://phv.lx.ro/cialis-vs-viagra.html http://phv.lx.ro/discount-viagra.html http://phv.lx.ro/discount-viagra-online.html http://phv.lx.ro/drugviagra.html http://phv.lx.ro/effectsofviagra.html http://phv.lx.ro/effects-of-viagra-on-woman.html http://phv.lx.ro/female_viagra.html http://phv.lx.ro/free_trial_viagra.html http://phv.lx.ro/free-viagra.html http://phv.lx.ro/free_viagra_sample.html http://phv.lx.ro/generic-viagra.html http://phv.lx.ro/generic-viagra-online.html http://phv.lx.ro/get_viagra.html http://phv.lx.ro/herbal_alternative_viagra.html http://phv.lx.ro/herbal-viagra.html http://phv.lx.ro/how-does-viagra-work.html http://phv.lx.ro/how-viagra-works.html http://phv.lx.ro/levitra-vs-viagra.html http://phv.lx.ro/lowcostviagra.html http://phv.lx.ro/lowestviagraprice.html http://phv.lx.ro/mail-order-viagra.html http://phv.lx.ro/natural-viagra.html http://phv.lx.ro/naturalviagraalternative.html http://phv.lx.ro/ok_viagra.html http://phv.lx.ro/online-viagra-sales.html http://phv.lx.ro/orderviagra.html http://phv.lx.ro/order_viagra_online.html http://phv.lx.ro/pfizer-viagra.html http://phv.lx.ro/pokerviagra.html http://phv.lx.ro/purchase-viagra.html http://phv.lx.ro/purchase_viagra_online.html http://phv.lx.ro/viagra50mg.html http://phv.lx.ro/viagra_alternative.html http://phv.lx.ro/viagra_and_alcohol.html http://phv.lx.ro/viagrabestbuy.html http://phv.lx.ro/viagra-canada.html http://phv.lx.ro/viagracialis.html http://phv.lx.ro/viagra-cialis-levitra.html http://phv.lx.ro/viagra_commercial.html http://phv.lx.ro/viagracost.html http://phv.lx.ro/viagradosage.html http://phv.lx.ro/viagra_erection.html http://phv.lx.ro/viagra-for-woman.html http://phv.lx.ro/viagra_forum.html http://phv.lx.ro/viagrahgh.html http://phv.lx.ro/viagrainfo.html http://phv.lx.ro/viagra-information.html http://phv.lx.ro/viagrajoke.html http://phv.lx.ro/viagralevitra.html http://phv.lx.ro/viagra-mexico.html http://phv.lx.ro/viagra-on-line.html http://phv.lx.ro/viagra-online.html http://phv.lx.ro/viagra-online-pharmacy.html http://phv.lx.ro/viagra_pharmacy.html http://phv.lx.ro/viagra-picture.html http://phv.lx.ro/viagra-pill.html http://phv.lx.ro/viagraprescription.html http://phv.lx.ro/viagra-prescription-online.html http://phv.lx.ro/viagra_price.html http://phv.lx.ro/viagra-price-comparison.html http://phv.lx.ro/viagraresearch.html http://phv.lx.ro/viagra_sale.html http://phv.lx.ro/viagra_sale_online.html http://phv.lx.ro/viagra_sales.html http://phv.lx.ro/viagra-sales-uk.html http://phv.lx.ro/viagrasample.html http://phv.lx.ro/viagra_shop.html http://phv.lx.ro/viagra_side_effects.html http://phv.lx.ro/viagrasofttab.html http://phv.lx.ro/viagrastory.html http://phv.lx.ro/viagra_substitute.html http://phv.lx.ro/viagra-supplier.html http://phv.lx.ro/viagra-uk.html http://phv.lx.ro/viagra_use.html http://phv.lx.ro/viagra_wholesale.html http://phv.lx.ro/viagra_without_prescription.html http://phv.lx.ro/where-to-buy-viagra.html http://phv.lx.ro/woman-taking-viagra.html http://phv.lx.ro/womens-viagra.html

Leave a Reply

Your email address will not be published. Required fields are marked *