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

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

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();

Similar Messages

  • Is the multi shoots feature for the new iso 7 camera supports iphone 5 or just the 5S

    Is the multi shoots feature for the new iso 7 camera supports iphone 5 or just the 5S

    The 10 fps burst mode will only be available on the iPhone 5s.  I believe all of the other features for sharpening photos from multiple shots are iPhone 5s only as well.

  • Alerts are not working for Site collections in a content database

    Hi,
    We have been into a strange issue that alerts are not working for site collections from a particular content database. When user subscribed for the alerts, they are getting mail about their subscription but not after that for any new items/documents added
    or changes happen in the list/document library.
    We have tried with Immediate as well as scheduled alerts both are not working.
    FYI, Alerts for all other site collections from different content database for the same web application are working without any issues.
    Any help would be appreciated.
    Thanks
    Ramkumar

    Looks like an Timer job Issue for your web application. Can you please check if these jobs are enabled and check error log for the alerts Timer jobs .Check whether the "Immediate Alerts" job is enabled for your web application.
    job-immediate-alerts
    job-daily-alerts
    job-weekly-alerts
    Please check this wiki -
    Troubleshooting Steps for SharePoint Alert Email Does Not Go Out
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Can I use the same plan that I have for my iphone 4s with my new ipad? or do I have to buy a new data plan for my new ipad?  I would love to use my new ipad away from home but not sure how to use it?

    Can I use the same plan that I have for my iphone 4s with my new ipad? or do I have to buy a new data plan for my new ipad?  I would love to use my new ipad away from home but not sure how to use it?  I am on Telus mobility with my iphone 4s.

    See the answer on the same question you asked a few minutes ago.

  • I updated my mac from 10.6.5 to 10.6.8 and now my CS 3 doesent start, its asking for a new license, but i never changed anything. Any Help with that thanks

    I updated my mac from 10.6.5 to 10.6.8 and now my CS 3 doesent start, its asking for a new license, but i never changed anything. Any Help with that thanks

    I don't know if this update involved rewwriting the entire operating system whereby you essentially transferred the software from one system to another, but if so, then you need to uninstall and reinstall the software and reactivate it using your serial number.

  • Must have features for all new nokia phones

    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 password provided on the CD Rom. This info should be tamper proof no matter what and should be displayed whenever phone is switched on and off.  Solar powered: Why not have the screen work as a solar panel or include a small panel on the side of the phone to charge it without necessarily leaving the phone out in the sun to charge. For customers in the tropics where the sun is all round the year and where power is scarce, this would really connect them.  Compass/Gps systems Having any of these features will be excellent for when one travels wherever; they won’t loose their sense of direction.  FM Radio Some of the phones have this but it should become standard feature but the catch here should be an integrated aerial so the one does not require connecting the handsfree in order to listen to the radio but have an option of both the phone speaker(just like the Nokia 630 speaker) Also can the handsfree have backlit screen and control just like those of a walkman or portable CD player? For big size phones beginning with 6630 up wards, this kind of handsfree would be handy as it will show missed calls, you can actually read you inbox messages and scroll through the phone book or mails as you speak to someone else without removing your phone from the pouch.  Twin Sims So many network available and most of them have not embraced the idea of offering double sim cards or two numbers of different networks on one simcard. Why not two slots on the side of the phone those use the hot swap system just like that of the MMC on the Nokia 6630 that can accommodate two simcards. Let these simcards be both active at any one time. Switching off and on of the phone frequently has an effect on the battery and this is what we mostly do/ or carry 2 – 3 phones around. I think having this feature will be excellent.

    I agree and most big companies do as they used these as business fones.
    I cant understand why such a good handset was discontinued without not bringing out an updated model.
    Some years ago carfone warehouse managed to get hold of quite a few of them but sold out very quickley.
    Now u can get them on sites that deal in refurbished models which im a bit wary of.
    Come on Nokia bring out a limited edition. Message Edited by bandofbrothers on 11-Jan-2007
    10:56 AM
    Nokia Lumia 520
     iphone 6 Plus.
    Be happy !!

  • NVIDA OpenGL feature for the new Macs availability

    I want to get a Mac with NVIDIA for the OpenGL feature, but the new ones are GT 640, 650, GTX 660, and 675 and none are on the list of NVIDIAs for Apple.  I realize the list isn't up to date and was wondering if they'll be added anytime soon if not already.  Thanks

    You can always hack the raytracer_supported_cards.txt file - on your own head, of course. Beyond that I wouldn't let my buying decision be driven by a half-baked feature like the Raytrace 3D. Seriously. That stuff is gonna change again in CS7 no doubt (hopefully for the better) and locking yourself into a specific hardware just to be compatible now may then prove disadvantageous (though arguably those nVidia cards will still somehow be put to use then). Honest, straight up answer: Buy whatever you need, learn a serious program on the side and/or invest some money in some 3D-ish plug-ins should the raytrace stuff not work on your hardware or you generalyl end up frustrated because it's so limited.
    Mylenium

  • Edit entity object and use the Create() method for generating ID's

    Hello,
    I have and InserPage.jsp and defined the datasoucre correctly.
    <jbo:InputText datasource="ds" dataitem="Clientid" /> gives me
    the unique ClientID from the FIRST client-record in my table ,
    although this page is for inserting a NEW Client, with a new
    ClientID.
    So, on the Clients Entity i made a create() method and put the
    following code in it:
    public Number getClientid() {
    return (Number)getAttributeInternal(CLIENTID);
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    Integer i=(Integer)seq.getData();
    setClientid(new Number(i.intValue()));
    super.create(attributeList);
    the getData() Returns a sequence value, but what sequence value?
    Do i have to create a sequence on the ClientID column in my
    Oracle Table in the DB too?
    The problem is, the first ClientID # is 819 and the current last
    one seems to be 2899, so how do i achieve that when opening the
    insert.jsp the new ClientID shows up (ie. 2900)?
    How can i achieve this?
    thx

    OK, managed to track down the HowTo on triggers? I created the
    trigger.
    create sequence client_seq
    start with 8900
    increment by 1
    nomaxvalue
    nocycle;
    I changed the create() method for the entity object to:
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    SequenceImpl s = new SequenceImpl("client_seq",
    getDBTransaction());
    Integer next = (Integer)s.getData();
    setClientid(new Number(next.intValue()));
    and running the tester for the module works fine. ;-)
    But...
    The Insert.jsp page has to insert/show this sequenced value!
    After i defined the datasource and let us say:
    <jbo:InputText datasource="ds" dataitem="Clientid" />
    ...the number 819 shows up, which is the FIRST record, so i do
    not get the new ClientID with the correct number.
    Any help is always nice. ;-)

  • Why I can buy any new products for my new Iphone4S having an acount

    Well I'm trying to buy new applications for my Iphone 4S having an account an it has been imposible

    What happens when you try?
    Error message?
    What does it say?
    Any info at all?

  • Create user for CPS in _ UPPER CASE LETTERS _ if using JSM on SolMan

    only create users for CPS in UPPER CASE LETTERS if using JSM on SolMan
    Dear CPS Admins,
    If you plan to use Job Scheduling Management (JSM) on SAP Solution Manager together with CPS by Redwood please always create any users in CPS only with upper case letters to avoid issues in the communication between SolMan and CPS.
    The user creation for CPS is done in the UME (Java user administration, alias /useradmin).
    Actually the CPS user itself is only created in CPS during the first logon.
    Both CPS and the Java UME are case sensitive. So you can create users in uppercase, lowercase or mixed letters. But of course the system does still not allow duplicate names. So you can either create MUELLERP, MuellerP or muellerp - but not multiple of them.
    Now, if the SolMan communicates with CPS for Job Scheduling, the actual user name is taken in some kind of a "trusted RFC like" way and checked on the CPS system connected to the SolMan. If the current SAP user does not exist on CPS no activities are possible, neither in read mode (read existing CPS jobs) nor in write mode (change existing jobs or create new ones).
    Unfortunately the Solution Manager transmits the current user name to CPS only in upper case letter. So if the CPS user was not created in UPPERCASE letters in CPS the communication will fail. Therefore, think about creating CPS users in UME only in UPPERCASE letters. Changing this later is difficult to impossible.
    Best regards,
    Peter

    hi,
    I tried to reproduce your issue but I was not able to create a UME user with lower case letters.
    UME automatically converted the user name into upper case after saving. So even if I enter "cps" as user name UME stored the user name as "CPS".
    (maybe that happend because of the existing SU01-UME integration in our SolMan system)
    If UME would be case sensitive I would expect that it is possible to create the user "CPS", "cPs" and "cps".
    Regarding the SolMan-CPS connectivity:
    Transaction SU01 allows only upper case letters (in user name and alias). Since you're starting from an ABAP system only user names with upper case letters are supported. It's a technical constraint of the ABAP user management that user names consist of upper case letters only.
    Kind regards,
    Martin

  • Why are the NI-DAQmx Base for LabVIEW options grayed out using custom install (with Action:Skip)?

    I'm trying to install NI-DAQmx Base 3.7.0 for LabVIEW 2013 (LV is installed). When I try Standard Install, it doesn't install for LabVIEW (only the Common and C and USB tools), but gives a successful installation message.
    When I try Custom Install, all of the "...for LabVIEW 20XX" options are unchecked, grayed out and the Action says "Skip".
    I'm trying this on a 2011 MacBook Air 11" running OS 10.9. LabVIEW runs fine.
    Thanks for any suggestions.
    Solved!
    Go to Solution.

    Hi,
    OS 10.9 is not officially supported by NI with the DAQmx Base 3.7. This information is from the description of the driver (http://www.ni.com/download/ni-daqmx-base-3.7/4272/en/):
    OS Support—NI-DAQmx Base now supports the following versions of Mac OS X:
    Mac OS X 10.7 (Lion)
    Mac OS X 10.8 (Mountain Lion)
    So this seems to the be the problem. Either you choose another OS version or wait for a new driver which supports 10.9
    Regards,
    Michael

  • Migrating a Path Based Site Collection to a Host Named Site Collection where the content database is greater than 135 GB

    Hi
    I have a 136 GB content database which will not back up via Backup-SPSite ( Microsoft say you cannot backup more than 100GB).
    So with out Backup / Restore how can I convert a Path Based Site Collection to a Host Named Site Collection  with my 136 GB content database which incidentally uses Remote Blob Storage ?
    Thanks
    Nigel 
    Nigel Price NJPEnterprises

    I see two options:
    Make the Backup-SPSite work despite being over 100GB (that's going to be a supported limit rather than a hard boundary)
    Externalise some of the content and then re-insert it after the move.

  • Imported XSLT cannot create attributes for generated XML element

    I have two xslts. One imports the other.
    The imported xslt creates XML elements with attributes and this XML is stored in a variable in the main stylesheet
    If I perform the transformation with JRE prior to 1.6.0.18 then all works fine
    If I use 1.6.0.18 or 1.6.0.19 then the attributes aren't added.
    If I add attributes in the main xslt it works fine or if I output the element directly instead of first storing it in a variable then it also works fine.
    Problem seems to be when you try to add attributes from an imported stylesheet and store the generated element in a variable.
    Below two stylesheets to illustrate :
    First MainStylesheet.xsl
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Copyright 1993-2005 Seagull Software Systems, Inc. -->
    <xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:exsl="http://exslt.org/common"
    extension-element-prefixes="exsl"
    exclude-result-prefixes="xs">
    <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" />
    <xsl:import href="innerstylesheet.xsl"/>
    <xsl:template match="/TestData">
    <xsl:variable name="generatedElementXml">
    <xsl:call-template name="generateElement">
    <xsl:with-param name="s">testValue</xsl:with-param>
    </xsl:call-template>
    </xsl:variable>
    <xsl:for-each select="exsl:node-set($generatedElementXml)">
    *** GeneratedElementXML {<xsl:text>
    </xsl:text><xsl:copy-of select="*"></xsl:copy-of>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>Next innerstylesheet.xsl
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:exsl="http://exslt.org/common"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    extension-element-prefixes="exsl" >
            <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
            <xsl:template name="generateElement">
                       <xsl:param name="s"/>
                    <TestElement testAttribute="$s" />
            </xsl:template>
    </xsl:stylesheet>The result output by jres before 1.6.0.18 is :
    <?xml version="1.0" encoding="UTF-8"?>
                   *** GeneratedElementXML {
              <TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" testAttribute="testValue"/>
                   }          The result output by jres since 1.6.0.18 is :
    <?xml version="1.0" encoding="UTF-8"?>
                   *** GeneratedElementXML {
              <TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                   }          Note : the 'testAttribute' attribute is missing

    Have found the difference in the code
    In both JRE1.6.0_17 & JRE1.6.0_18, the class 'com.sun.org.apache.xalan.internal.xsltc.dom.AdaptiveResultTreeImpl' has the following method
    public void addUniqueAttribute(String qName, String value, int flags)
            throws SAXException
            addAttribute(qName, value);
        }In JRE1.6.0_17 the next method is
    public void addAttribute(String name, String value)
         if (_openElementName != null) {
             _attributes.add(name, value);
         else {
             BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, name);
        }In JRE1.6.0_18 the next method is
    public void addAttribute(String uri, String localName, String qname,
                String type, String value)
         if (_openElementName != null) {
             _attributes.addAttribute(uri, localName, qname, type, value);
         else {
             BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, qname);
        }Note - the addAttribute method has additional parameters in JRE1.6.0_18 but the call from addUniqueAttribute wasn't updated.
    So in JRE1.6.0_18 addUniqueAttribute actually invokes the following method in the base package com.sun.org.apache.xml.internal.serializer.EmptySerializer
    public void addAttribute(String name, String value)
            aMethodIsCalled();
    void aMethodIsCalled()
            // throw new RuntimeException(err);
            return;
        }and as you can see this does nothing. Hence the fact that the attribute isn't added.

  • Thumbnail on Provider Page not showing up for a new collection

    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 Duke's Provider Page under the "What's New" section http://itunes.apple.com/us/institution/duke-university/id420416991 and the thumbnail is not showing up for that collection.  How can we get that thumbnail to show up on our Provider Page?  Why is it not showing up?
    Thanks for your consideration,
    Meg 

    There are two more collections on our Duke University iTunes U page that have collection artwork that is not updating.  Here are the examples.
    Duke Human Rights:http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=420543608
    Electronic Tectonics:http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=420545217
    Both of these collections have newly uploaded thumbnails (uploaded many months ago)---but those thumbnails aren't reflected on the Tag page that houses these collections.  These collections are in the John Hope Franklin Humanities Institute Tag Page here:http://itunes.apple.com/WebObjects/DZR.woa/wa/viewTagged?id=420416991&tag=John+H ope+Franklin+Humanities+Institute
    But, the thumbnails on the Tag page are the old thumbnails, not the newly uploaded ones.  How can we make sure the newly uploaded thumbnails are refreshed and showing up?
    Thank you!
    -Meg

  • Create settings for a new document

    Here is my problem. When you create a new document in illustrator you have several options available in the new document window. You first can choose web/print/film… and then select a size (A4, A3 for the print, for example) in the second menu.
    I am trying to make my own setting. Making it appears in the first menu is not hard. Just duplicate one of the predefined files and change the name and it appears in the menu presets. Done. But I didn't find a way of changing the sizes option (where I put the arrow). I cannot find anywhere in the predefined document a way of doing this  and to have my own predefined sizes in the second menu instead of the  standard A4, A3… sizes. Anyone might know how to achieve this settings ?  Thanks

    docunagi wrote:
    I am trying to make my own setting.  I cannot find anywhere in the predefined document a way of doing this  and to have my own predefined sizes in the second menu instead of the  standard A4, A3… sizes. Anyone might know how to achieve this settings ?  Thanks
    Ignore the section whcih says "Letter" "A4" or whatever.  You can't change those headings.
    To set your own chosen size, in the boxes which contain width/height dimensions just type in the sizes which you need, and adjust the units if necessary
    Then the bit which says "Letter etc" will just say "Custom"

Maybe you are looking for

  • What do i need to connect Macbook to LCD tv?

    Can someone tell me what is the best way to connect my Macbook to my LG LCD TV? I want to watch DVDs on my tv and hear the sound through the tv. I have the following connections available on my tv: VGA DVI s-video composite (red, yellow & white) Rega

  • Photoshop CS Won't Open

    I have Photoshop CS and have been using it for a long time on this computer - and it has always been fine. I'm now trying to open it - and it basically won't open. The initialization takes forever (it was always long - but is REALLY long) and then I

  • Dc5850 Quad monitors: Onboard Video + Video Card

    I have a HP dc5850 AMD Minitower and would like to hook up 4 monitors. I read here on the hp site that you can utilize both onboard video (Dual DVI) and use an additional Video Graphics Card (Dual DVI) to support a total of 4 monitors (2 from onboard

  • Access clipboard content's icc-profile in javascript

    Good day to all of You! Does any one know if/how one can get information on the clipboard content's measurements and most importantly icc-profile via JavaScript? Thanks pfaffenbichler

  • Windows 8 green screen

    I am having issues playing videos. There is audio but the screen appears green. I went step by step and tried the possible issues such as enabling flash player and disabling activex but nothing works. What else could be an  issue? Flash version: 11.8