Existing SharePoint 2010 Content Database Attach – No Site Collections
First, let me start off by saying that I have read every single thread I could find on this subject, such as:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/0c34ca6f-0db1-4d61-a48c-c4704dd86513/currentsitecount-is-zero-in-upgraded-site
http://social.technet.microsoft.com/Forums/sharepoint/en-US/502459b3-0301-4ac3-bfc4-16ea702bb5bc/empty-site-data-after-mounting-content-database?forum=sharepointadminprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec472ed5-4cdd-45ca-a327-ccc34c29c0a4/zero-site-collections-when-restoring-sp2010-content-database?forum=sharepointgeneralprevious
http://social.technet.microsoft.com/Forums/en-US/c8df1760-275a-43a4-b3fc-cf257c56d8e2/orphaned-entry-in-config-database
That said, even though my situation is a bit different than those posts, I have tried all the things!
Let me break it down:
Our prod server is a sad Frankenstein upgrade from Project/SharePoint 2003 to 2007 to 2010.
The problem is not on our prod server.
Our test server was a database attach installation. It mostly works.
The problem is, we have this old content database which housed the project sites that were created on 2003, then upgraded to 2007, then upgraded to 2010 – but when it attaches to the test server, it's empty. The "current number of site collections"
in CA shows 0 and the CurrentSiteCount in powershell = 0.
We have to keep these sites and their links for compliance reasons (7 year retention policy!) and we haven’t really cared that they aren’t working on the test server…except that we are going to be upgrading to 2013 this year, and that’s a database attach
no matter what. So I have to solve this now.
I’ve checked the following:
The data is there on the database.
The database name I’m typing is correct.
The version of the db is up to date.
The top level site is set to Exclusion.
Permissions.
Here’s what I’ve tried:
Attaching using powershell
Attaching using Central Admin
Detaching and reattaching
Running psconfig
Resetting IIS
When the database is unattached, I have tried the “Recover data from an unattached content database” function – it recognizes the database (if I type it in wrong, it tells me I don’t have access) but then finds nothing in the site collections.
The prod server is perfectly happy with these sites, and we copied the database from prod after the 2010 upgrade, so I don’t know what the issue is.
I appreciate any thoughts any of you have. I’m stumped!
ElliJ
Project Solutions Specialist
http://projectserverpants.wordpress.com/
Holy lots of errors, batman!!
I think it's safe to say that the 2010 upgrade didn't hit all our sites, based on the errors and this post:
http://social.technet.microsoft.com/Forums/projectserver/en-US/c7b19345-3036-4dc1-a174-026796cdee7c/missing-server-side-dependencies-after-project-server-upgrade-from-2003-to-2010?forum=projserv2010setup
There are serveral missing setup files and one missing assembly:
Category : MissingSetupFile
Error : True
UpgradeBlocking : False
Message : File [1033\PWA\lists\wplib\dwp\Updates.dwp] is referenced [27
5] times in the database [STS_FSHAREPTP01_1], but is not inst
alled on the current farm. Please install any feature/solutio
n which contains this file.
Remedy : One or more setup files are referenced in the database [STS_F
SHAREPTP01_1], but are not installed on the current farm. Ple
ase install any feature or solution which contains these file
s.
Category : MissingAssembly
Error : True
UpgradeBlocking : False
Message : Assembly [Microsoft.Office.Project.Server.PWA,Version=12.0.0.
0,Culture=neutral,PublicKeyToken=71e9bce111e9429c] is referen
ced in the database [STS_FSHAREPTP01_1], but is not installed
on the current farm. Please install any feature/solution whi
ch contains this assembly.
Remedy : One or more assemblies are referenced in the database [STS_FS
HAREPTP01_1], but are not installed on the current farm. Plea
se install any feature or solution which contains these assem
blies.
I guess the question now is - how do we get it to upgrade ALL of the site collections and sites? I'm actually pretty sure I can figure it out from here, that test was a huge help, thanks!
Similar Messages
-
SharePoint 2010 Content database growing too fast
Hi,
I have a SharePoint 2010 Content database wss_content_DB which is 197 GB BUT when I calculate my site collection I can see they have used only about 70 GB. I know there is Auditdata table which is about 27 GB. Couple of days ago my content DB was about 105
GB and it Audit data log was set to unlimited once I noticed that I set to 90 days since then it jumped to 197 GB.
I have no idea what is going on.
Now I need to know
- why it is showing 197 GB in SQL server
- How can I trim audit log
- Why suddenly it's increased to 197 GB from 105 GB
Any help will be greatly appreciated.
AbdulThere is a way to deal with this table. There is an stsadm command (stsadm -o trimauditlog) as part of the infastructure update that will allow you to manage this data.
#Powershell Script to trim old AuditData table records.
$currentDate = Get-Date
#Number of days we want to keep data in the table
$NumberOfDays = -90
$DateToDelete = $currentDate.AddDays($NumberOfDays)
$DateString = ‘{0:yyyyMMdd}’ -f $DateToDelete
$STSADMCMD = “stsadm -o trimauditlog -date $DateString -databasename WSS_ContentDB”
invoke-expression “$STSADMCMD”
WHY IT SUDDENLY INCREASED:
Do this query on your SQL Instance: DBCC SQLPERF(logspace)
This will show you how the size of LOGfiles (LDF) and how much is unused, if you have alot of unused space it indicates you dont have a recent DB backup - normally backup would write log data to MDF file .
Normally you will not shrink DBs, only if you have deleted alot of data and you are not going to use space again so only do a shrink if you REALLY needs to.
http://www.microsoft.com/en-us/download/details.aspx?id=24282 -
Size or delete unwanted entries from tables AllDocStreams,AllDocVersions,EventCache,EventLog of Sharepoint 2010 content database:
We using powershell scripts to migrate data between two sharepoint 2010 sites .
While doing migration we delete all document libraries & list form destination site and then run powershell to migrate data from source to destination. We following this process
twice in a week.
But in doing so we found the above mention tables (AllDocStreams,AllDocVersions,EventCache,EventLog ) of destination Sharepoint Content database are growing at an alarming rate.
Wish to know how could get rid of unwanted data stored in these tables.Hi,
This is old thread but here is your answer for some of the tables you mentioned
http://blogs.msdn.com/b/sowmyancs/archive/2012/06/29/alldocversions-amp-alldocstreams-table-size-after-upgrading-to-sharepoint-2010.aspx
Cheers -
Hello,
I am migrating Sharepoint 2010 my site content database to SharePoint 2013. First I have to create My site web application in SharePoint 2013. How can I synchronize 2010 content database with 2013.Hi ghsajith,
According to your description, my understanding is that you want to upgrade your SharePoint 2010 to SharePoint 2013.
There is an article for your reference:
http://blogs.msdn.com/b/alimaz/archive/2012/07/17/upgrading-from-sharepoint-2010-to-sharepoint-2013-step-by-step.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Hi,
I am having an issue of having to refresh my IE to be able to view a migrated SharePoint 2010 site in 2010 mode in SP2013. Is this Token Service Problem, Request Management problem.....
Any ideas out there - driving me nuts!
Thanks.
John.
P.S> Still think this could be related to over-provisioned host as all SP Machines are virtual. Won't know for sure until Tuesday.
Thanks.
JOhn.What are you using Request Management for?
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to add an existing content database to new Site collection
Hi All,
Can anyone help to figure out how can I add existing content database to a new site collection in SharePoint 2013 foundation.
We have more than 40 site collections under one web application, and only one site collection is returning 404 error. When checked in the central admin to view all site collections, the details on the right side of the site is not visible, and unable
to delete it. The database is not corrupt, as I tried to add the same content database to a new web application, and it works perfectly in a new web app.
As we couldn't find any solution, the only option we thought of was to blow the site collection and create a new one and add the exisiting database, but I am unaware as to how can I add existing database to new create site collection. Can anyone help
me with this please?
Regards,
DJIt's working....
The current database was corrupt I guess, (not sure though). Took old backup file and tested to see if it's working. After the test was successful...
Removed the current database in CA
Delete the current database in SQL server
Restored the working backup file in SQL server
Added the content db in CA
That's it... the site collection is working now...
Regards,
DJ -
SharePoint 2010 content database size issues alldocs streams
HI All,
We are planning to do migration from sharepoint 2010 to sharepoint 2013. our database team identified that "all docs streams" and "audit log table" using almost 300 gig
we dropped "audit log" table today almost 100 gig
but still "all doc streams" table size is almost 147 gig
how to handle this situation before migration?
do I need to migrate as it is or do I need to work on "all doc streams" table
hot to handle database size
which way you recommend ? what are the best practices
please see database table size
can any one please send me step by step implementation?
Thanks,
kumar
kkmFirst off, touching SharePoint database tables is completely unsupported.
http://support.microsoft.com/kb/841057
You shouldn't be making changes within the database at all and you're putting yourself out of support by doing so.
AllDocStreams is your data. You need to have users clean up data, or move Site Collections to new Content Databases if you feel you need to reduce the size of the table itself.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
What are the steps to change existing sharepoint 2010 farm database server to a new server
Hi
i have a sharepoint 2010 farm and backend with sqlserver2012 standard edition on windows server 2008 r2 server
now what are the steps to if want to connect this farm to a new sql server 2012 on windows server 2012 server and remove this existing server
adilYou have two options:
Use a SQL Alias and you will then need to swing all databases over to the new SQL Server
Don't use a SQL Alias and swing all but the Configuration and Administration databases to the new SQL Server, and individually re-configure Service Applications/Web Applications to use the new SQL Server. This will force you to keep the old SQL Server around.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
List and libraries in sharepoint 2010 content database
I want to know when I create List or form library . where every form of form library will go.
Will it save into content database ?
I want to make report from the content database for form library or list ?All Content in SharePoint is stored in the content database and there are APIs that you can use to access the contents of a particular list or library in SharePoint. But if you are thinking that you can access a specific list as a single table or portion
of a database table in the content database for your report then you will be disappointed for two reasons.
First, direct access to the SQL databases in SharePoint is prohibited by your license agreement. It is too easy to break things in SharePoint when you start accessing the databases directly.
Second, individual entries in a list or library are not stored directly in one place.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
SharePoint 2010 - Content database contains orphaned items
Good day people!
We have come across the feared "Content databases contain orphaned items"!
Running a check on our farm shows:
PS C:\Users\SPAdmin> Get-SPContentDatabase | ForEach-Object { $_.repair($false)}
<OrphanedObjects Count="0" />
<OrphanedObjects Count="0" />
<OrphanedObjects Count="7">
<Orphan Type="RoleAssignments" Count="7" />
</OrphanedObjects>
<OrphanedObjects Count="385">
<Orphan Type="RoleAssignments" Count="385" />
</OrphanedObjects>
PS C:\Users\SPAdmin>
Microsoft is very specific about how to solve this type of error on their http://go.microsoft.com/fwlink/?LinkID=142694.
That is very nice and good, but, doing this on a large production database doesnt feel all that good when we do not really know whats going to happen with the autofix button.
Would/could anyone explain what the "Fix Now" button does? Any risks involved? Are there other ways to fix this problem? We already emptied all recycle bins completely.
best regards
BjornHi Bjorn,
Thanks for posting your issue, Kindly follow below mentioned Steps to fix reported issue
Verify that the user account that is performing this procedure is a member of the Farm Administrators group.
On the Central Administration Home page, click Monitoring.
On the Monitoring page, in the Health Analyzer section, click
Review problems and solutions.
On the Review problems and solutions page, click the alert for the failing rule, and then click
Fix Now. Keep the dialog box open so you can run the rule again to confirm the resolution.
After following the steps in the Remedy section, in the
Review problems and solutions dialog box for the alert, click Reanalyze Now to confirm the resolution. If the problem is resolved, the rule is not flagged as a failing rule on the Review problems and solutions page.
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
SharePoint 2010 Content from top level site hidden from search results on subsite.
Hi Everyone,
The issue I am having is that when a group of people are in there site, we'll call it site B, and they hit the search function, they only get results from site B and subsites of site B, but nothing from the top level site, site A. does anyone know of anyway
to get results from site A when searching in site B? This would really help me out a lot.
Thanks!
Best regards, MikeHi Mike,
According to your description, my understanding is that you want to display the content in top level site in search results page when doing search in subsites.
By default, the search scope is set to This Site in all sites, so the search scope in subsites is limited to the subsites.
I recommend to create a Search Center and then edit the Search settings in the top level site settings, please refer to the image below:
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Hiding SharePoint 2010 specific Feature in SP2013 site collection
In the new SP 2013 Platform, we have options to deploy the solutions to compatibility level scope of <<14>>, though the solution is deployed to 14 hive and targeting a SP2010 site collection, the feature name will be displayed in
the 2013 site collection as well regardless of the scope defined for the feature. We can create feature receivers to prevent users activating the feature, but Is there a way to prevent / stop showing a feature name/ description in a SharePoint 2013 site
collection.
Regards, Aj (http://www.aj-sharepoint.blogspot.com/) MCTSHi Bistesh,
The feature is not deployed to the <15 hive>, the feature is only deployed to <14 hive> as we are explicitly specifying the <14 hive> for deployment. If i update the xml file, then
it reflects everywhere.
Regards, Aj (http://www.aj-sharepoint.blogspot.com/) MCTS -
Multiple content databases and Project Sites
Hi,
I am in the process of migrating our Project 2007 PWA + Project Workspaces data to Project 2010. Our PWA site and the Project Workspaces are in a single content DB (2007) and I am trying to work out what I should do when I migrate it. Our content
DB is about 150GB which I believe is around the maximum that it should be.
I am unsure about a couple of things.
1. In SharePoint, you can assign multiple content DBs to a single web application, but each Site Collection will only live in a single content DB. Given that all of the Project Sites are actually just sub-sites of a single Site Collection I cannot see
a way to ever split them up into multiple content DBs. Am I missing something?
2. There is another post in this forum talking about whether to split PWA and Project Sites into different content DBs (and therefore Site Collections) with Project 2010 or not. Even though I have read it I am still unclear as to whether or not I should
do this and what the actual pros and cons are.
Thanks in advance for the replies.
Cheers,
DavidAll,
The requester wants more than 1 Site Collection for Project Sites and he wants more than 1 content database for each site collection. Neither of which apparently SharePoint can do. However,
for large numbers of Projects and associated Project Sites this will almost certainly be a necessity.
The Suggestion was that the PWA site collection and Project Sites site collection could be different and hence on different databases (even web apps). Fine. But not helpful, really, since that
only gets us to two site collections. One very small and one that will potentially grow very large, too large.
What appears to also have been suggested was to create a separate site collection for very large project sites.
While this approach could work, it is administration intense and is bound to have issues related to PWA navigation, etc...and certainly not part of the Project Server 2010 PWA automatic Site
Creation methodology. It also is after the fact and not really scalable. it would be possibe, but tricky to do this after the fact - moving it from one site collection to another - and then reset the URL in PWA Server Settings,
could be done.
I would suggest something similar, but a bit more pragmatic...Thanks Bruce!
Create 1 new Site Collection for Project Sites (same web app) in a new content DB - use script.
Setup PWA to provision all new Project Sites to that new site collection. Maintains automatic site provisioning.
Monitor
the size of the DB, when it reaches a reasonable limit (? 50GB ?) - repeat this process, create another site collection in a new DB - but
change the PWA provisioning settings to have all new sites go to the new (next) site collection. Existing sites will still be found (keep the site collections in the same web app for continuity) and can have content added (I guess up
to a point - monitor). Repeat as needed.
Another way I can conceive of is to create a fixed set of a small number of site collections (in the same web app) and manage the Project Site creation manually selecting which
project site goes against which site collection. Division along some logical boundary such as Departments makes sense. But other divisions may be used. This could scale by simply adding more site collections at each department (HR-2), should any given department's
DB grow too big. Then all the logically related Project Sites will hang off the site collection selected and be part of that database for that site collection for that "department" let's say.
just a variation of the above solution. Monitoring the DB size is key in both cases.
There may of course be caveats to any approach other than OOTB and all in 1 site collection, around navigation, web parts, solution starters, etc...some of which are addressed elsewhere. Of
course, this is admin intensive but retains automatic provisioning for new sites. I believe it would work and meet the requirements for smaller DB's and multiple Site collections for PWA Project Sites and scale to thousands of project sites.
Thanks,
Eric S.
Eric S. -
SharePoint 2010 - Content Organizer Move and leave a link
Hi everyone,
We have activate Content Organizer on two Site collections, one name FromSC
(From Site Collection) and the other name ToSC (To Site Collection).
We have created a new "Send To Connections" with the Action "Move and leave a link"
The document is moved from the librairy in the site collection "FromSC" to the librairy in the site collection "ToSC" but we don't have any link in the librairy in the site collection "FromSC".
Anyone have the same problem?
Regards,
Social Technet Microsoft.Hi,
Based on your description, I have done a test in my SharePoint 2010 and I re-appeared your issue.
I have followed the following article to create a new "Send To Connections" with the Action "Move and leave a link".
http://www.boostsolutions.com/blog/how-to-configure-send-to-connections-in-sharepoint-2010/
A link is created when I manually move the document to the Send To Connection.
But if I am using the rule "Content Organizer Rule" the link is not created.
Besides, I have created a new "Send To Connections" with the Action "copy" and I got the same results.
By testing, I came to the conclusion that it is by default that when we use the "Content Organizer Rule" and choose the target location with the screenshot, it just take the connection as a destination path rather than using its action.
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support -
Display Custom Fields in a SharePoint 2010 Content Query Web Part?
Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part
AKshay NangareHi,
By default CQWP shows only one column. However, if you want to show more than one column, then CQWP needs to be customized. The property which you are looking for is CommonViewFields. It is used to specify the additional fields that you want to display in
the Web Part. See this for more information:
https://msdn.microsoft.com/en-us/library/ms497457%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field
Maybe you are looking for
-
Cannot print to printer from firefox-- stopped after an update.
After one of the periodic updates the print function stop working. The printer will cycle pper--but nothing prints. With a capture printer it will produce just blank page(s). The printer and all other print devices work fine from the desktop. I use a
-
Name and extension network volume - problem
Hi all, I am 10.7.5 and when I get my network volumes the system I added an extension to the volume name! example: volume name: Music in name and extension: Music-2 Why am I adding -2?? and how to no longer be Thank you for your help
-
How do I get my iMessages to send to my iPad?
I have it set to send to my Macbook. How do I do it on my iPad?
-
I've read a number of whitepapers on User Events and Notify/Wait on Notification. They seem quite similar to me, and I'm not sure which to use. I have (well, when I write it) a transmit/receive VI that I think will be running in a separate thread.
-
How do I stop past email addresses I have sent to going in to my contacts?
I delete them from my contact and they reappear. Thanks