Microsoft Knowledge Base Email Alertz

KBAlertz.com: A new operation has been added to the Stsadm.exe tool to repartition a site collection of a Windows SharePoint Services 3.0 content database

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 939035 - Last Review: June 25, 2008 - Revision: 3.0

A new operation has been added to the Stsadm.exe tool to repartition a site collection of a Windows SharePoint Services 3.0 content database

On This Page

INTRODUCTION

Microsoft Windows SharePoint Services 3.0 includes the Stsadm.exe tool for command-line administration of Windows SharePoint Services servers and sites. We have added a new operation that you can use to repartition a site collection in a content database.

MORE INFORMATION

To obtain this new operation, apply hotfix 939188. Then, use the mergecontentdbs operation to repartition a site collection in a content database.

How to obtain the hotfix

For more information about hotfix 939188, click the following article number to view the article in the Microsoft Knowledge Base:
939188  (http://kbalertz.com/Feedback.aspx?kbNumber=939188/ ) Description of the Windows SharePoint Services 3.0 hotfix package: June 24, 2007

How to use the mergecontentdbs operation

To repartition a site collection in a content database, use the following syntax for the mergecontentdbs operation at a command prompt:
stsadm.exe -o mergecontentdbs -url <url> -sourcedatabase <source database name> -destinationdatabasename <destination database name> [-operation <1, 2, or 3>] [-filename <file name that is saved from the stsadm -o enumsites operation>]
Note The following table lists the values for the operation parameter.
Collapse this tableExpand this table
Parameter valueDescription
1Analyze (default)
2Full database merge
3Read from file
The following is a sample Stsadm.exe command line for the mergecontentdbs operation:
stsadm.exe -o mergecontentdbs -url "http://site collection URL" -sourcedatabase "source database name" -destinationdatabasename "destination database name" [-operation "1"] [-filename "file name"]

Additional information

A new -databasename <databasename> parameter has been added to the Enumsites operation.

For more information about the Enumsites operation, visit the following Microsoft Web site:
http://technet2.microsoft.com/windowsserver/WSS/en/library/8f37f18d-81fc-4897-b3bd-c490e7fae0b71033.mspx (http://technet2.microsoft.com/windowsserver/WSS/en/library/8f37f18d-81fc-4897-b3bd-c490e7fae0b71033.mspx)
For more information about the Stsadm.exe command-line tool, visit the following Microsoft Web site:
http://technet2.microsoft.com/windowsserver/WSS/en/library/f9f9a3eb-ce46-4dbb-a15c-9fad9eb32ec71033.mspx (http://technet2.microsoft.com/windowsserver/WSS/en/library/f9f9a3eb-ce46-4dbb-a15c-9fad9eb32ec71033.mspx)
To make sure that you have the correct permissions to repartition site collections, temporarily grant yourself Full Control permissions in "Policy for Web Application."

Additionally, make sure that your account is a box administrator on the server that is running Microsoft SQL Server, or make sure that your account is granted the Database Owner fixed database role for all SharePoint products and technologies databases.

To do this, follow these steps:
  1. Click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
  2. Click the Application Management tab, and then click Policy for Web Application.

    Note Determine whether the account is already listed, and then determine which permission level the account has.
  3. In Policy for Web Application, click Add Users.
  4. On the Add Users page, click the Web application that you will use to run the command, and then click Next.
  5. In the Choose Users box, add the account that you will use to log on when you run the command.
  6. In the Choose Permissions area, select Full Control, and then click Finish.
Note If you do not have the correct permissions to perform the operation, you will receive an error message that resembles the following error message:
Moving sites... Another site already exists at /sites/test. Delete this site before attempting to create a new site with the same URL, choose a new URL, or create a new inclusion at the path you originally specified.
After you successfully repartition the sites, use the previous steps to remove or to change your account permission level by using "Policy for Web Application," depending on how you want your permissions to be configured. If your account is used for other services, reset it to the original permission level.

APPLIES TO
  • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbwss30postrtm kbexpertiseinter kbqfe kbbug kbfix kbpubtypekc KB939035
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please