Solved

Deleting and creatiing root site collection during package pre deployment

Posted on 2013-02-04
2
385 Views
Last Modified: 2013-02-05
Background:
In a vid course I'm taking, it is demonstrating pre-deployment commands for a solution. It is solving the problem of not being able to redeploy a list that is already there. It seems good that SharePoint doesn't let you deploy a list of the same name and I'm guessing it's because you would overwrite the existing data in the list with blank data or whatever data you deploy as part of the solution. However, in a dev environment, you will need to redeploy often and won't have any live data. So the suggestion of this course is that during pre-deployment, you wipe out the root site collection and then recreate it as the first step in the deployment, before solution retraction, add, activate....

Question:
In his example, I do not believe that he has any additional site collections under /sites or anywhere else, but in my case, I have some site collections under /sites. If I delete and create the root site collection, what happens with the other site collections? Do they disappear too? If they stay, are they considered children in some way and therefore will be orphaned or are they only related by falling within the same root url and are therefore pretty much independent except for the common resources they all share?

Thanks.
0
Comment
Question by:BobHavertyComh
2 Comments
 
LVL 38

Accepted Solution

by:
Justin Smith earned 500 total points
ID: 38852742
If you delete a root site collection, the others won't be affected.  They will remain and will not be orphaned.  However, as a best practice, each web app should have a root site collection, even if it's just a place holder site.


__________________________________________________
Follow me on Twitter!  @justinsmith317
0
 
LVL 9

Author Closing Comment

by:BobHavertyComh
ID: 38854259
OK. Just needed to make sure I understand the relationships before deleting anything. So even though one site collection has a url within the other, they are both at the same level in terms of actual hierarchy. Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now