Create feature for generate new collection having separate content database by using custom coding with C#

Advertisement
November 30

Hi all My self ArunDarly .Iam using share point 2010 ,I want below task solve by  using custom coding with
C#
I have one task that create new site collection having separate content database. and that content database site collection limit  should be only one  (it must contain one site collection and note more than one  )
This total functionality should happen when I am saving one list item (dynamically generate new site collection ) 
If any body know this Please give me your guidance  
Thanking  You,
Arun Darly

Advertisement

Replay

Hey Arun,
I have done the same job. Hope this code will help you.
using (SPSite siteCollectionOuter = new SPSite("Any SC url in which u want to create site."))
SPWebApplication webApp = siteCollectionOuter.WebApplication;
SPSiteCollection siteCollection = webApp.Sites;
SPContentDatabase contentDatabase =
siteCollection.WebApplication.ContentDatabases.Add(ServerName, New Database Name, Admin Name,
"Admin Password",25,50, 0);
//Above line will create new content DB
contentDatabase.Update();
siteCollection.WebApplication.Update();
SPSite newSite = contentDatabase.Sites.Add("New SC Url", "SC Title", SC Desctipyion, 1033,
15, "STS#0", "SC Admin", "Admin", "admin password",
"User 2", "User NAme", "Password");
//Ablove line will create new SC in to the Content DB
//add the upper limit for the site collection
SPQuota quota;
quota = new SPQuota {StorageMaximumLevel = 2510220};
newSite.Quota = quota;
// And update the site collection and the content database
newSite.RootWeb.Update();
contentDatabase.Update();

View 4 Replies

Must have features for all new nokia phones

November 30

To the technical and design team  Security feature Add a window for personal details for owner of the phone. Where one cannot use the phone the first time till they have input all this data and they can only change or remove it with a unique passwor

View All Replies

Thumbnail on Provider Page not showing up for a new collection

November 30

Hello: The new MacLearning collection: iTunes U Munich Conference  http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=445693522    has a thumbnail when you go to the collection page.  However, this collection is currently featured on Du

View All Replies

Where's the navigation element in Dw6? Or how do I create one for a new site?

November 30

I can't find the navigation element in Dreamweaver 6This is where it is in Dreamweaver CS6 (version 12.2): The HTML5 elements were added to CS6 in an updater. If all you've got are div tags and Spry options, it sounds as though you're using the origi

View All Replies

Publishing Feature for Site Collection

November 30

Hi.. I am having 5 different Site Collections in SharePoint Site and from 1st Site Collection we are redirecting to other using Top Link bar, but when we enable Publishing Feature for Different Site Collections the Top Link bar changed..i want to hav

View All Replies

Error while generating DDL commands using startSQLRepository for a new Repository

October 11

Hi, I am trying to generate DDL Commands using startSQLRepository for my new repository SubashRepository so that I can use them to create new table structure. All the repository related changes looks good. i can see my repository in ACC When I run th

View All Replies

How to create transaction for table maintinance generator

October 11

what is the procedure(steps) to create transaction for a table maintinance generatorHi, The link will be useful for ur requirement. allaboutsap.blogspot.com/2007/04/table-maintenance-in-sap-step-by-step.html https://www.sdn.sap.com/irj/sdn/go/portal/

View All Replies

Create file for export data from Essbase

November 30

I wish to create dynamically CalcScript for an unloading of the data from Essbase. For this purpose I have created variables for each measurement. How to create procedure for generate a file with my variables? Thanks.Hi, There are a number of ways of

View All Replies

SharePoint PowerPivot feature failing after site collection was backed up and restored (moved to new content database)

October 11

Hi there, I am having some strange issue with my PowerPivot for SharePoint but can't figure out what is causing this. Here is what happened: I setup PowerPivot (PP) for SharePoint and activate it on few site collections in production environment; I u

View All Replies

New Features for OWB 9.2

October 11

Mark Van De Wiel mentioned yesterday in this forum that OWB 9.2 is now available at http://otn.oracle.com/software/products/warehouse/content.html . From the version number it would appear that this is a major new release, and it's a separate install

View All Replies

New Feature for iTunes

October 11

I have a suggestion for a new iTunes feature concerning the sound preferences. The idea is for iTunes to have a separate volume control selection for headphones. This way the sound that comes out of the mani speakers will not shut off when the headph

View All Replies

LR beta released - new features for ACR 7

November 30

I was just reading about the LR beta for version 4: http://www.dpreview.com/articles/7481161037/lightroom-4-public-beta-whats-new Although I'm not a LR user, I was excited to see the new editing features, as they will be essentially the same as the n

View All Replies

Creating an Opaque view for generating the Action Link URL in OBIEE EBS int

November 30

Do we have to Creating an Opaque view for generating the Action Link URL in OBIEE Oracle E-Business Suite integration if we are not using BI Applications(DAC). We built our Repository on Materialized views we were using with Discoverer so I'm not sur

View All Replies

I use multiple libraries with itunes - should I create a new library for a 2nd iphone

October 11

I use multiple iTunes libraries to manage multiple devices from the same PC.  I'm purchasing an iPhone 6 and currently have a library for my iPhone 4.  Would I create a new library for this new device?  Also, to restore all content to my new phone, W

View All Replies

Do we need to run catbundle.sql for ANY new db we create after CPU's?

November 30

We're in the middle of reviewing the JAN2009CPU readme, and found a curiosity in the patch notes. - Our platform is Oracle 10.2.0.4 Enterprise Edition on Solaris 10 64-bit. In the Post-Patch instructions for the CPU, we see the following clause {colo

View All Replies

How do I create folders for variuos apps i.e health, news etc.

November 30

How do I create folders for variuos apps i.e health, news, sports etc.Tap and hold down on an app con until it begins to "wiggle", then drag one app icon on top of another app icon to create the folder. Move as many apps as you like into that fo

View All Replies

Hi. my laptop was reformatted recently, and my itunes there erased. i created a new one but the problem is it doesn't sync with my ipod anymore. what is the solution for this? can someone give me a tip? will really appreciate. thanks

November 30

hi. my laptop was reformatted recently, and my itunes there erased. i created a new one but the problem is it doesn't sync with my ipod anymore. what is the solution for this? can someone give me a tip? will really appreciate. thanksSyncing to a "New

View All Replies

I have created two tables for my new  report under one transport request.

November 30

Unwanted table transported I have created two tables for my new  report under one transport request. But I only need one table and the second table I was supposed to delete. However by mistake, with out deleting the second tableu2026 the transport re

View All Replies

As I try to download apps (Skype) for my new iPhone 5s, a message comes that says that my id is not valid for US and I need to switch to Bangladesh store, there is no Bangladesh store. How to download apps to my iPhone? I created ID without credit card

November 30

As I try to download apps (e.g. Skype) for my new iPhone 5s, using my existing apple ID, it gives a message that my id is not valid for US store and I need to switch to Bangladesh store. There is no bangladesh Store. I created my id without credit ca

View All Replies

11g new features for dba

November 30

can anyone share document or link regarding 11g new features for dba i am searching in the nethttp://tahiti.oracle.com/ click on your version (11.1 or 11.2) you will see the docs Edited by: Bawer on 17.01.2013 10:13Read other 5 answers

View All Replies

Tags:

  1. how to post miro for zero grn value
  2. ovi upgrade via terminal
  3. vidioplays.song
  4. logic 9 for windows 7 200mbs
  5. sattellite l650 1mm system unit psk1 je
  6. bapi_po_create1 extension
  7. ME_PROCESS_PO_CUST BAPI_PO_CREATE1
  8. how to set program run dat in rffoedi1
  9. SAP PI CPIC-CALL: ThSAPCMRCV
  10. ULT4
Copyrights 2018 Fcffair BigData Resource, All rights reserved