Configuring a SharePoint 2010 Installation (part 1) - Renaming the Central Administration Database

12/9/2010 2:52:20 PM

2. Renaming the Central Administration Database

After the SharePoint configuration database, the Central Administration database is the second most important database that SharePoint uses, and unless you perform a command-line installation, it uses the default user name with a Globally Unique Identifier (GUID). This can make it challenging if you want to write scripts that reference the database using the default name. The following steps should be used with extreme caution, but if you follow them exactly, you can give the default Central Administration database a more user-friendly name.

  1. Log on to your SQL Server with an account that has full access; ideally, you should use the same account that you used for your SharePoint installation.

  2. Open the SQL Server Management Studio interface and locate the SQL Server instance that contains your Central Administration database. The database name will be something similar to SharePoint_AdminContent_<GUID>, as shown in Figure 6. Right-click the database name and choose the Rename command from the shortcut menu to enter edit mode. Then press Ctrl+C to copy the existing name of the database for later use. Click anywhere outside of the database name to exit edit mode.


    Be sure not to change the name at this point—it will be done at a later time.

    Figure 6. Finding the default Central Administration database name

  3. While still in SQL Server Management Studio, back up the existing SharePoint_AdminContent_<GUID> database by right-clicking the name of the database and then selecting the Tasks command. Select Back Up to open the Back Up Database dialog box. Use all of the default settings for the backup and then click OK.

  4. When you have successfully backed up the database, restore the information from the backup that you just performed to a new database having a user-friendly database name such as CentralAdmin_Content_DB. Perform the restore by right-clicking the existing database name again and selecting the Tasks command from the shortcut menu. Select Restore and then Database to open the Restore Database dialog box shown in Figure 7. In the To Database section, type in the new database name and then click OK at the bottom of the dialog box.

    Figure 7. Restoring to a new database name

  5. Open Central Administration. Under Application Management, click Manage Content Databases.

    1. Select the SharePoint Central Administration v4 Web application using the Web application drop-down list.

    2. Click the old database name, SharePoint_AdminContent_<GUID>.

    3. Use the Database status drop-down option to change the status from Ready to Offline.

    4. Do not select the option to remove the content database.

    5. Click OK.


    It is critical that you use the correct user name during this step or you will probably receive Access Denied error messages.

  6. Log on to the server using the account that was used to provision the database. Usually this is the service user account that you configured SharePoint with when you provisioned the content databases during the installation of SharePoint 2010.

  7. After opening the command prompt, perform the following steps.

    1. Type cd C:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\BIN\ to change the directory to the SharePoint 2010 root so you can run the STSADM commands.

    2. Delete the original Central Administration database, the one with the GUID that you copied earlier, using the following command (be sure to specify the UrlOfYourCentralAdministration and NamedInstanceOfYourSqlServer for your SharePoint installation names).

      stsadm -o deletecontentdb -url http://UrlOfYourCentralAdministration:p
      ortnumber -databasename SharePoint_AdminContent_<GUID> -databaseserver
      NamedInstanceOfYourSqlServer or just the name of the SQL Server if there is no
      instance name for the SQL Server.

    3. Associate the newly created database with your Central Administration using the following STSADM command (again be sure to specify the UrlOfCentralYourAdministration and NamedInstanceOfYourSqlServer for your SharePoint installation names).

      stsadm -o addcontentdb -url http:// UrlOfYourCentralAdministration:
      portnumber -databasename SharePoint_AdminContent_DB -databaseserver

  8. Return to Central Administration. Under Application Management, click Manage Content Databases and refresh the page to verify that your Central Administration database reflects the new database name as shown in Figure 8.

    Figure 8. Renaming the Central Administration database

    If you see a database with the new name, you can then be sure that the original Central Administration database is backed up, and you can delete it from SQL Server.


If you attempt to delete the original SharePoint_AdminContent_<GUID> database and receive an error indicating there are existing connections to the database, you probably didn’t disassociate the database from SharePoint. Repeat the process from the beginning.

Other -----------------
- SharePoint 2010 : Enable or Disable Inline Editing in a View
- Performing SharePoint 2010 Installations (part 5)
- Performing SharePoint 2010 Installations (part 4)
- Performing SharePoint 2010 Installations (part 3)
- Performing SharePoint 2010 Installations (part 2)
- Performing SharePoint 2010 Installations (part 1) - SharePoint 2010 Standalone Installation
- SharePoint 2010 : Specify the Item Limit for a View
- SharePoint 2010 : Specify How Folders Will Be Used in a View
- SharePoint 2010 : Specify a Different Item Style for a View
- SharePoint 2010 : Specify Totals for a View
- SharePoint 2010 : Specify How Items in a View Are Grouped
- SharePoint 2010 : Specify How Items in a View Are Filtered
- SharePoint 2010 : Specify How Items in a View Are Sorted
- SharePoint 2010 : Specify the Order of the Columns in a View
- SharePoint 2010 : Specify Columns for a View to Display
- Preparing for SharePoint 2010 Installation (part 3)
- Preparing for SharePoint 2010 Installation (part 2)
- Preparing for SharePoint 2010 Installation (part 1)
- Introducing SharePoint 2010 Installation Types
- Sharepoint 2010 : Optimizing Outside of SQL Server
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8