.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> SharePoint >> Post New Question Subscribe to Interview Questions

Q. How to Move content Databases using PowerShell ?

Posted By :Gowthammanju     Posted Date :November 30, 2011    Points :40   Category :SharePoint 
Ans. To attach\detach 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>"

See more Commands at Windows Powershell Common Commands



You can also find related Interview Question to Q. How to Move content Databases using PowerShell ?  below: 

How to Move content Databases using PowerShell ?

  
To attach\detach an existing content database use

Mount-SPContentDatabase "" -DatabaseServer "" -WebApplication http://WebapplicationName

is the content database to be attached.

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 "" (More...)

What are content databases?

  

A content database can hold all the content for one or more site collections. (More...)

What's the difference between Move and LocationChanged? Resize and SizeChanged?

  
Both methods do the same, Move and Resize are the names adopted from VB to ease migration to C#. (More...)

All session content can be Removed ?

  
Yes, All session content can be Removed using following codes :

Session.Contents.RemoveAll()

it Removes all items from current Session. (More...)

Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?

  
For restoring the master db we have to stop the SQL Server first and then from command line we can type SQLSERVER -m which will basically bring it into the maintenance mode after which we can restore the master db. (More...)

What are content types in SharePoint?

  
A content type is a flexible and reusable WSS type definition (or we can a template) that defines the columns and behavior for an item in a list or a document in a document library. For example, you can create a content type for a leave approval document with a unique set of columns, an event handler, and its own document template and attach it with a document library/libraries. (More...)

which event will perform first when a content page is loaded ?

  
Master page controls Init event is performed first when a content page is loaded. (More...)

What is Powershell ?

  
PowerShell is the .NET based automation engine in Microsoft p/f , it can be embedded into .NET applications but is usually used as a command line shell and scripting language. (More...)

How can we Move to Next and Previous Record using BindingSource Class

  
bindingSource1.MoveNext() to move to Next record and
bindingSource1.MovePrevious() to move to previous record. (More...)

What are content types?

  
A content type is a flexible and reusable WSS type definition (or we can a template) that defines the columns and behavior for an item in a list or a document in a document library. For example, you can create a content type for a leave approval document with a unique set of columns, an event handler, and its own document template and attach it with a document library/libraries. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend