Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sharepoint 3.0 STSADM command IIS

Posted on 2011-03-08
3
Medium Priority
?
607 Views
Last Modified: 2012-08-13
Does any one know where I am going wrong with this code to add the content database and assign it a different ID?

stsadm.exe -o addcontentdb -url http://sharepointsite -assignnewdatabaseid -databasename Sharepoint_2DB
0
Comment
Question by:fstinc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
ThatSharepointGuy earned 1000 total points
ID: 35073032
What isn't working (what does it say when you run your command)?

According to Microsoft you're doing it the right way:
http://technet.microsoft.com/en-us/library/cc288692(office.12).aspx

stsadm.exe -o addcontentdb

-url <URL name>

-[-assignnewdatabaseid]

-[-clearchangelog]

-databasename <database name>

[-databaseserver <database server name>]

[-databaseuser <database username>]

[-databasepassword <database password>]

[-sitewarning <site warning count>]

[-sitemax <site max count>]


One thing I would do, is wrap your URL, Database Name, and Database Server in quotes.

So try this:
stsadm.exe -o addcontentdb -url "https://mySharePoint.com" -assignnewdatabaseid -databasename "New-ContentDB" -databaseserver "MySharePointSQL" 

Open in new window


I know the server isn't "required", so you can leave that out if you want.  I usually supply server and credentials regardless, and haven't had any issues with it.
0
 

Author Comment

by:fstinc
ID: 35073671
Yup, the quotes seemed to have done they job. Didnt know that. Thanks.
0
 
LVL 6

Expert Comment

by:ThatSharepointGuy
ID: 35073959
No problem, fstinc!

I have a habit of wrapping everything in quotes, from URLs to server names, etc.  It doesn't always do the trick, but i've had more success doing it than without.  

Have a good one!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question