Tuesday, August 27, 2013

Content Database Current Site Count is 0

Upgrading a 2007 SP2 content database to 2010 content database.  Using the Mount-SPContentDatabase shell and having good success.  Ran into this one and was stumped.

I would submit the command

Mount-SPContentDatabase SharePoint_Content_01 –databaseserver <servername> -WebApplication <serverurl>

The result would execute and return the command:

ID                        : <Guid>
Name                   : SharePoint_Content_01
WebApplication  : Web - 80
Server                  : <SQLServer\SchemaName>
CurrentSiteCount: 0

Issue:
Why would there be 0 sites?  I have at least 10.

Solution:
Check the spelling of your content database.  The mount command does not check for the content database.  If it does not exist it will create it for you automatically.

I purused this site http://sharepoint.stackexchange.com/questions/29719/content-database-shows-no-site-collections and stumbled across this issue.




No comments:

Post a Comment