CertCities.com -- The Ultimate Site for Certified IT Professionals
Listen, See, Win! Register for a Free Tech Library Webcast Share share | bookmark | e-mail
  Microsoft®
  Cisco®
  Security
  Oracle®
  A+/Network+"
  Linux/Unix
  More Certs
  Newsletters
  Salary Surveys
  Forums
  News
  Exam Reviews
  Tips
  Columns
  Features
  PopQuiz
  RSS Feeds
  Press Releases
  Contributors
  About Us
  Search
 

Advanced Search
  Free Newsletter
  Sign-up for the #1 Weekly IT
Certification News
and Advice.
Subscribe to CertCities.com Free Weekly E-mail Newsletter
CertCities.com

See What's New on
Redmondmag.com!

Cover Story: IE8: Behind the 8 Ball

Tech-Ed: Let's (Third) Party!

A Secure Leap into the Cloud

Windows Mobile's New Moves

SQL Speed Secrets


CertCities.com
Let us know what you
think! E-mail us at:



 
 
...Home ... Editorial ... Columns ..Column Story Saturday: April 5, 2014


 Tip o'the Week  
Zubair Alexander
Zubair Alexander


 Weeding Out a Content Database in MOSS
How can I delete a content database in Microsoft Office SharePoint Server (MOSS) 2007?
by Zubair Alexander  
10/27/2009 -- If you delete a Web application that has an associated content database, and you only deleted the Web application and not the associated database, you won't be able to reuse that name for the content database if you create a new Web application -- unless, that is, you first delete the content database.

You can create or remove a content database by either using the Central Administration in MOSS 2007 or by using the STSADM tool. For the former, in the GUI, go to the Application Management tab in Central Administration and then click on Content databases. There you can manage the content databases.

The second option -- which frankly I find quicker and much easier to use is to use -- is the command-line STSADM tool. Sometimes the GUI will prompt you to use the STSADM tool to delete the content database, in which case you have no option but to use STSADM. Here's how you can use STSADM to create or delete a content database in MOSS 2007.

When you go to the command prompt, by default STSADM will not be on your path. You might want to add the location of STSADM to your path to make things easier. The file is located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN. Go to the Environment Variables and edit the path under System variables. If you already have a command prompt open, you need to close the window and open it again to make the new path take effect.

Let's assume you want to create a database called "WSS_Content_Intranet" and the SharePoint site is http://intranet:80. To create the database at the command prompt, use the following command:

stsadm.exe -o addcontentdb -url http://intranet:80 -databasename WSS_Content_Intranet

If you want to delete a content database, simply use the switch -deletecontentdb.

stsadm.exe -o deletecontentdb -url http://intranet:80 -databasename WSS_Content_Intranet

(By the way, note the space after "-databasename" in the above commands.)


Zubair Alexander, MCSE, MCT, MCSA and Microsoft MVP is the founder of SeattlePro Enterprises, an IT training and consulting business. His experience covers a wide range of spectrum: trainer, consultant, systems administrator, security architect, network engineer, author, technical editor, college instructor and public speaker. Zubair holds more than 25 technical certifications and Bachelor of Science degrees in Aeronautics & Astronautics Engineering, Mathematics and Computer Information Systems. His Web site, www.techgalaxy.net, is dedicated to technical resources for IT professionals. Zubair may be reached at .

 


More articles by Zubair Alexander:

-- advertisement --


There are 16 CertCities.com user Comments for “Weeding Out a Content Database in MOSS”
Page 1 of 2
6/30/13: louis vuitton outlet from [email protected] says: good share. louis vuitton outlet http://www.louisvuittonttoutlet.com
7/5/13: gucci outlet online from [email protected] says: ths gucci outlet online http://www.guccioutletstore-online.com
7/5/13: christian louboutin outlet store from [email protected] says: nice articles christian louboutin outlet store http://www.christianlouboutinoutleta.com
7/15/13: replica watches from [email protected] says: Good post!You did a good work,and offer more effective imformation for us!Thank you! replica watches http://www.tellwatchesuk.co.uk/
7/23/13: OakleySunglassesOnSa from [email protected] says: The Astounding Secrets For The sunglass Oakley Sunglasses On Sale http://www.fake-oakleysus.com
7/25/13: Discount Christian Louboutin Shoes from [email protected] says: nice articles Discount Christian Louboutin Shoes http://www.discount-louboutin.net/
8/12/13: FakeOakleySunglasses from [email protected] says: Possibly the most fun you could have with out cutting out sunglass Fake Oakley Sunglasses http://www.fakeoakleysglasses.com
8/17/13: Toms sale from [email protected] says: Just remember Each time You Could easily get the latest shoes free of charge, And Never did ?? Toms sale http://www.tomscanadaoutlets.com
8/30/13: american football london from [email protected] says: thank you for share! american football london http://www.americanfootballlshopuk.com
9/1/13: michael kors outlets from [email protected] says: nice articles michael kors outlets http://www.michaelkorsioutlet.org/
First Page   Next Page   Last Page
Your comment about: “Weeding Out a Content Database in MOSS”
Name: (optional)
Location: (optional)
E-mail Address: (optional)
Comment:
   

-- advertisement (story continued below) --

top