![]() |
|
|
|
By: Edwin Sarmiento | Read Comments (7) | Related Tips: > Sharepoint |
I've been tasked to manage the SharePoint 2010 database server after deployment. While looking at the list of databases, I saw several databases that have GUID values appended to their names, one of them is the SharePoint Admin Content database. How can I rename the database and remove the GUID value from the name?
In a previous tip, Introduction to SharePoint 2010 for SQL Server DBAs, you were introduced to the different types of databases that SharePoint uses. The SharePoint Central Admin database is a configuration database that stores site content and permissions for the Central Administration web application. As a DBA, we are concerned with backing up and restoring all of the SharePoint databases. While the Central Admin Content database is backed up when a SharePoint farm administrator performs a farm configuration backup, it doesn't get restored when a farm is restored. We can backup and restore the SharePoint Admin Content database separately using native SQL Server backup tools. The challenge here is dealing with a database name that has a GUID value.
Here is an example of the SharePoint database name.
If you have a corporate policy to standardize database naming conventions or use custom database maintenance scripts, it is imperative to rename the SharePoint databases to eliminate those GUID values, starting with the SharePoint Admin Content. While most recommendations will tell you to rename your SharePoint databases accordingly during creation, in most cases, we DBAs are not included as part of the initial planning and deployment process. Thus, we end up with SharePoint databases with such naming conventions. To accomplish this task, we will be using Windows PowerShell via the SharePoint 2010 Management Shell console. Remember to backup the database prior to performing the tasks below.


You can also confirm this by checking the list of databases from within SQL Server Management Studio.

In this tip, we've renamed an existing GUID-valued SharePoint content database to remove the GUID value. In future tips, we will look at performing the same task but with the service application databases running on your SharePoint 2010 farm.
| Thursday, June 14, 2012 - 1:22:27 PM - Chuck | Read The Tip |
|
Hello Nice article and easy to follow. I tired this out in my dev envoronment and discovered that i could no longer login to the SSRS server that I had integrated. when I click on the "Reporting Services Integration" link in central administration I see a login failure message. I was able to add the report server again and all seems well. Thanks for the post. Looking forward to the followup. |
|
| Friday, July 06, 2012 - 7:46:11 AM - Uman | Read The Tip |
|
Hi Edwin, Very helpful article. Nice documentation. Can you please let me know, how to rename BDC database, also the other service application databases like UPS on SP 2010. Thanks, Uman |
|
| Thursday, July 26, 2012 - 6:21:30 AM - Marco | Read The Tip |
|
hello, also u can a use another process: use get-SpDatabase to get the guid of the central admin content database use Dismount-SPContentDatabase go to sql, put the database in single user mode and rename. then use Mount-SPContentDatabase-DatabaseServer-WebApplication
cheers Marco Dias |
|
| Friday, February 15, 2013 - 8:43:29 AM - Andrew | Read The Tip |
|
Hi, Edwin |
|
| Friday, April 12, 2013 - 5:42:15 AM - dotmit | Read The Tip |
|
Really handy tip, thanks so much :) |
|
| Tuesday, April 16, 2013 - 4:37:26 PM - Michael | Read The Tip |
|
Hello Edwin, I want to change the guid of a sharepoint content database. Have you done that before? |
|
| Wednesday, April 17, 2013 - 10:25:05 AM - bass_player | Read The Tip |
|
Michael, I'll write up a tip to rename a SharePoint content database that has a GUID value in it. Thanks for the idea |
|
|
privacy | disclaimer | copyright | advertise | about authors | contribute | feedback | giveaways | user groups Some names and products listed are the registered trademarks of their respective owners. Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com |