Share via


Createsiteinnewdb: Stsadm operation (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2007-09-07

Description

Creates a site at the specified Uniform Resource Locator (URL) and creates a new content database using the user name and password you specify. If you do not specify a template to use, the owner can choose a template when he or she first browses to the site.

Syntax

stsadm -o createsiteinnewdb

**   -url <URL name>**

**   -owneremail <someone@example.com>**

**\[-ownerlogin\] \<domain\\name\>**

**\[-ownername\] \<display name\>**

**\[-secondaryemail\] \<someone@example.com\>**

**\[-secondarylogin\] \<domain\\name\>**

**\[-secondaryname\] \<display name\>**

**\[-lcid\] \<language\>**

**\[-sitetemplate\] \<site template\>**

**\[-title\] \<site title\>**

**\[-description\] \<site description\>**

**\[-hostheaderwebapplicationurl\] \<Web application URL\>**

**\[-quota\] \<quota template\>**

**\[-databaseuser\] \<database user name\>**

**\[-databasepassword\] \<database password\>**

**\[-databaseserver\] \<database server name\>**

**\[-databasename\] \<database name\>**

Parameters

Parameter name and (short form) Value Required? Description

url

A valid URL name, such as http://server_name

Yes

The name of the Web application.

owneremail

A valid e-mail address, in the form someone@example.com

Yes

The site owner's e-mail address.

ownerlogin

A valid Windows user name, and must be qualified with a domain name, for example, domain\name

No

The site owner's user account.

ownername

A valid name, such as "Joe"

No

The site owner's display name.

secondaryemail

A valid e-mail address, in the form someone@example.com

No

The secondary site owner's e-mail address.

secondarylogin

A valid Windows user name, and must be qualified with a domain name, for example, domain\name

No

The secondary site owner's user account.

secondaryname

A valid name, such as "Fred"

No

The secondary site owner's display name.

lcid

A valid locale ID, such as "1033" for English

No

The local language ID.

Note

You must specify this parameter when using a non-English template.

sitetemplate (st)

Valid values available in a default installation include:

  • STS#0: Team Site

  • STS#1: Blank Site

  • STS#2: Document Workspace

  • MPS#0: Basic Meeting Workspace

  • MPS#1: Blank Meeting Workspace

  • MPS#2: Decision Meeting Workspace

  • MPS#3: Social Meeting Workspace

  • MPS#4: Multipage Meeting Workspace

    Note

    If you added a template to the central template gallery, you must specify the template name as GLOBAL#number, where number refers to the template ID.

No

Specifies the type of template to be used by the newly created site.

The value must be in the form name#configuration. If you do not specify the configuration, configuration 0 is the default (for example, STS#0). The list of available templates can be customized to include templates you create.

title

A valid title, such as "NewSite"

No

The title of the new site collection

description

A valid text string, such as "This is a description"

No

Description of the site collection.

hostheaderwebapplicationurl

A valid URL assigned to the Web application by using Alternate Access Mapping (AAM), such as "http://server_name"

No

When the hostheaderwebapplicationurl parameter is present, the value of the url parameter is the URL of the host-named site collection and value of the hostheaderwebapplicationurl parameter is the URL of the Web application that will hold the host-named site collection.

quota (qt)

A valid quota template name, for example, "personalquotas"

No

The quota template to apply to sites created on the virtual server.

databaseuser (du)

A valid user name, such as domain\username

No

The administrator user name for the SQL Server database.

databasepassword (dp)

A valid password that adheres to your business policy

No

The password that corresponds to the administrator user name for the SQL Server database.

databaseserver (ds)

A valid database server, such as "DS"

No

The server on which the Windows SharePoint Services collaboration database exists. The default value is the local computer name.

databasename (dn)

A valid database name, such as "DN"

No

The name of the Microsoft SQL Server database or Microsoft SQL Server 2000 Desktop Engine (Windows) (WMSDE) database used for Windows SharePoint Services data.