1.

How To Move Content Databases Using Powershell ?

Answer»

To attachdetach an EXISTING content DATABASE

use 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>"

To attachdetach an existing content database

use 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>"



Discussion

No Comment Found