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,
DJ

It'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

Similar Messages

  • 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!

  • How to add default associated groups when creating new site

    Hi All,
    I am trying to create a new subsite in sharepoint 2013 using CSOM (code is mentioned below). But no default groups (MEMBER, VISITOR, OWNER) are getting created in that site. When we try through UI we will got through a page "Set Up Groups
    for this Site" where we can specify these details.. Is it possible to do the same (creating default groups together with the site creation) through CSOM or powershell.
    CSOM code:
    WebCreationInformation creation = new WebCreationInformation();
                creation.Url = "NewSubSite6";
                creation.Title = "NewSubSite6";
                creation.UseSamePermissionsAsParentSite = false;
                Web newWeb = clientContext.Web.Webs.Add(creation);
                //clientContext.Load(newWeb);
                clientContext.ExecuteQuery();
    Regards,
    Shahabas

    Shahbas, here is the code:
    private static void SetSecurityOnSubSite(ClientContext clientContext, ListItem item, bool confidential, Web newWeb)
                try
                    if (confidential)
                        newWeb.BreakRoleInheritance(false, false);
                        clientContext.ExecuteQuery();
                        Group ownerGroup = default(Group); Group memberGroup = default(Group); Group visitorGroup = default(Group);
                        // web has unique permissions, so create default assosiated groups (owners, members, visitors)
                        if (!newWeb.GroupExists(newWeb.Title + " Owners"))
                            ownerGroup = newWeb.AddGroup(newWeb.Title + " Owners", "", true);
                            clientContext.Load(ownerGroup);
                        if (!newWeb.GroupExists(newWeb.Title + " Members"))
                            memberGroup = newWeb.AddGroup(newWeb.Title + " Members", "", false);
                            clientContext.Load(memberGroup);
                        if (!newWeb.GroupExists(newWeb.Title + " Visitors"))
                            visitorGroup = newWeb.AddGroup(newWeb.Title + " Visitors", "", false);
                            clientContext.Load(visitorGroup);
                        // executequery in order to load the groups if not null
                        clientContext.ExecuteQuery();
                        newWeb.AssociateDefaultGroups(ownerGroup, memberGroup, visitorGroup);
                        newWeb.AddPermissionLevelToGroup(newWeb.Title + " Owners", RoleType.Administrator);
                        newWeb.AddPermissionLevelToGroup(newWeb.Title + " Members", RoleType.Contributor);
                        newWeb.AddPermissionLevelToGroup(newWeb.Title + " Visitors", RoleType.Reader);
                        FieldUserValue userValueCreatedBy = item[Constants.Projects.CreatedBy] as FieldUserValue;
                        User createdByUser = clientContext.Web.EnsureUser(userValueCreatedBy.LookupValue);
                        clientContext.Load(createdByUser);
                        clientContext.ExecuteQuery();
                        UserCreationInformation createdByUserCI = new UserCreationInformation();
                        createdByUserCI.LoginName = createdByUser.LoginName;
                        ownerGroup.Users.Add(createdByUserCI);
                        clientContext.ExecuteQuery();
                        foreach (FieldUserValue userValue in item[Constants.Projects.ProjectTeam] as FieldUserValue[])
                            User user = clientContext.Web.EnsureUser(userValue.LookupValue);
                            clientContext.Load(user);
                            clientContext.ExecuteQuery();
                            UserCreationInformation userCI = new UserCreationInformation();
                            userCI.LoginName = user.LoginName;
                            memberGroup.Users.Add(userCI);
                        clientContext.ExecuteQuery();
                catch (Exception)
                    throw;
    Reference link: 
    http://sharepoint.stackexchange.com/questions/116682/how-to-create-a-group-in-a-subweb-using-csom
    Thanks, Pratik Shah

  • How to Manually Restore SharePoint Content Database from DPM Backup to Alternative Farm

    I have restored a content database of a site collection from a DPM backup, and the result is the MDF and LDF files of the database in a directory I specified in the restored wizard in DPM.
    In my other SharePoint farm (a test environment) simply trying to attach these files in the target farm's SQL server produces an error as follows:
    "Paths that begin with \\?\GlobalRoot are internal to the kernel and should not be opened by managed applications. (mscorlib) "
    Given I have the DPM restored database, on an alternative farm, how can I manually restore this content database? What are the required steps?
    Thanks,
    Richard

    Hi
    Gr8 - don't ask me to explain, somehow SQL caches the backup location which is from a snapshot starting with
    \\?\GlobalRoot and copying them discards that so they can me mounted.
    Glad that resolved your issue.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • 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,
    David

    All,
    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.

  • How to add a related content for a particular document in UCM

    Hi All
    How to add a related content for a particular document in UCM. On which table it stores all the related document details. Can anyone suggest me a document which helps me to know how to add related contents for a document
    With thanks and regards
    Anoop

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

  • How to add datafile to standby database

    Hi,
    We have standby database on another site and we are using manual recovery. How to add datafile to standby database after datafile is added to primary database.
    We are on Oracle 9i R2.
    Please help.
    Thanks in advance

    Hi,
    When you recover the standby database after you added a datafile to the production, you will get an error that the file that needs recovery does not exist.
    At this point you can connect to the standby and issue:
    alter database create datafile '<original_name>' as '<new_name>';the new name is optional if the location of the files are the same.
    After that, you can continue recovering the standby database.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • How to Synchronize 2010 content database of my site (Web Application port 8080) to Sharepoint 2013 content database

    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

  • How to Migrate the Existing Content

    Hi every1,
      I want to know how to Migrate the existing content in Interwoven to new Content Management system
    Thanks & Regards
    Vasu

    Hi Vasu,
    as said, I don't know Interwoven in detail. But if you would get the Interwoven Business Package, maybe you could get some insight how to access Interwoven content per API (at least, Interwoven <i>has</i> a Java API, see http://blogs.ittoolbox.com/km/content/archives/005150.asp for example; but I would ask Interwoven or within some Interwoven forum for the details, and on this site for the details of SAP KM API... ).
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Create a new site collection in different farm and connect to different content database from decommissioned farm

    I wish to bring down a SharePoint farm1 and create a new site collection in an existing farm2 and connect the new site collection in farm2 to the content db in farm1.
    Is this possible and how should I do it?

    it is possible to copy/move a content database from one farm to another... so long as the NEW farm is at least as up-to-date (version/service packs/updates/hotfixes/etc) as the OLD farm.
    you can move a site collection into its own content database.
    hopefully that answers your question.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • SharePoint 2010 - Create new site collection in existing web application with different existing content DB

    I have a SharePoint 2010 root level site collection SC1 in web application WEBAPP1. I want to create copy of that site collection in same web application WEBAPP1. Apart from Import/Export, Restore/Backup options, will following approach work? If yes , how?
    I took backup of content database of web application.
    Restored database with different name
    Mounted Content database to this WEBAPP1 by assigning new ID to DB
    Created new site collection by using this newly mounted DB
    Site collection gets created successfully but content does not appear.
    Please guide if i can achieve desired functionality by using this approach.
    If this helped you resolve your issue, please mark it Answered

    It is because the Site GUID is identical, and each GUID can only be present on the farm once. You can use Backup-SPSite/Restore-SPSite (which is full-fidelity, unlike Export-SPWeb/Import-SPWeb), which will generate a new GUID for the restore Site Collection,
    even in the same Web App.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do I change existing apple ID to new email

    how do I change existing apple ID to new email?

    Hi,
    Even I have the same question, but the 'Manage your Apple ID' doesnt work. It says the email has already been registered, when I'm sure I didnt register it. Also, its a newly created email address!
    Please help as I dont use my old email anymore and I cannot find a solution to this.
    Thanks in advance.

  • Error when using ANY "save site as template Include Content" solution to create a NEW Site Collection

    Here is the scenario. (SharePoint 2013)
    In Dev/Test/Prod any Site that we Save as Template and include content and then, Download and try to use in a new Site Collection errors out upon use "List does not exist" error.
    This occurs with ANY Site, even OOB Team Site template that is immediately "Saved as Template".
    We can do this in any other environment (we have several test labs 1 in O365 and 1 in VM that is very OOB)
    We can take the site solution from the environments we're having the issue in and use them successfully in our Lab environments (on prem or in the cloud).
    We have also tried taking Site solution from lab environment (where we know it works fine) and tried to use these in Dev/Test/Prod and they also error on us.
    In the Dev/Test/Prod environments that have the issue if we DO NOT include content, the template works just fine to create a new site collection with the template.
    Keep in mind we're talking about environment with no 3rd party apps, no custom code, just 2013 SharePoint with all patches and CU up to June 2013, AND this is ANY template even a vanilla OOB template without anything in it.
    You can always save site as template including content, download/upload it to new site collection solutions gallery and activate it without any issue... it's only if you try to use these templates to create a site that the error occurs.
    Any thoughts on this?
    J

    I also experiencing the same issue. I also tried to create a new site-collection using publishing site template, resulting in "list not found" error.
    Later I tried just a team-site (with content) -> the same error.
    The error appears on two different (post SP1) farms. That's why I tested the site-collection creation on an old (pre SP1) farm: the error doesn't exist. Site-Collections are created properly.
    My conclusion is: either SharePoint SP1 or a later CU causing the error.
    Regards,
    Valerian

  • How to add and delete content on device from iTunes

    I cannot find the way to add and delete content on my devices from the new iTunes. I don't understand why they changed the way it worked without any tutorials or hints at how to use the new iTunes app. I can see my device, I can see that music is on there, but I cannot unselect songs or content to get rid of it. Also, my apps do not show up on the apps list, I can see the screens with the apps on them and can delete them from that but the list is not working. I am using Yosemite and iTunes 12.01

    If you select your device in iTunes then on the left-hand side of iTunes you should see a Settings heading with categories below it which you can use to select what to sync from your iTunes library to the device, and below that an On My Device heading with categories below it listing what is on the device.
    For the Apps tab, the listbox of apps on my Mac's iTunes doesn't always populate until I've scrolled up/down the window. If yours doesn't populate then you have your apps downloaded and stored in your Mac's iTunes library - the listbox shows what you have in your computer iTunes library, if your library is empty then the listbox will remain empty.

  • How to use an existing remote database instance?

    Hi,
    is it possible to use an existing remote database instance for installation of Solution Manager?
    Our dba has setup an empty database instance on a hpux oracle cluster for me and I don´t know how to tell the SAPinst during the installation of the distributed system that it should use this existing database.
    Or is it mandatory to run the installation on the host where the database should resides and then create a new instance?
    Thanks in advance for any hints!
    Christian

    We currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
    Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
    HTH. Thanks for your interest in OEPE.

Maybe you are looking for