You are on page 1of 7

Rename and Attach a

Content Database for


SharePoint.
Presenter: Jorge L Vela.
Study Case
• Some time ago, a customer had a problem at the moment to
perform backup operations for its content database.

• The reason was because the physical files for the content
database had an space at the beginning of its name, for
example “ WSS_ContentDB1.mdf”.

• While in the Central Administration and in the SQL Server


Management the content database is showed normally.
Detach Content Database
Change the Content Database
Name
• We will use the “ren” command from a windows MS-DOS
command prompt as it can see in the next images:
Attach the Content Database
• We will use the following SQL query in order to attach the
database files that we had renamed.
Verify the name for the Content
Database
• We will use the following SQL query to verify the current
physical name for the attached content database.
Verify the name for the Content
Database
• In the next image you can see the physical file names have
changed and the web application is functional.

You might also like