?
Solved

Sharepoint 3.0 STSADM command IIS

Posted on 2011-03-08
3
Medium Priority
?
598 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

Industry Leaders: 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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

765 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