Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Monday, December 05, 2011

Adding a content database using PowerShell in SharePoint 2010

Adding a content database using PowerShell in SharePoint 2010
To attach an existing content database:

Mount-SPContentDatabase "<ContentDb>" –DatabaseServer "<DbServer>"
–WebApplication http://WebapplicationName

<ContentDb> is the content database to be attached.

<DbServer> is the name of the database server.

http://WebapplicationName is the name of the Web application to which
the content database is being attached.

To detach a content database:

Dismount-SPContentDatabase "<ContentdBName>"

Where is the name of the content database.

No comments:

Post a Comment