Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Unable to Change the Default Physical Location of Content Databases on SQL server


Symptoms

When we change the database default location in SQL server and create a new web application the content database will be saved to the previous location and will not use the settings changed on the SQL server.

↑ Back to the top


Cause

Changes will only take effect after you restart the SQL Server or SQL services. The connection from SharePoint to SQL has to be refreshed.

When you save the location, it's saved as DefaultData and DefaultLog under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer

↑ Back to the top


Resolution

The Work around to resolve this issue is to restart the SQL server or SQL services

1. Open SQL Server Management Studio and connect to the SQL instance Where your SharePoint Databases will be hosted
2. Right Click the Server name or the SQL instance and click Properties.
3. Change Database Settings for "Database Default Locations" for both Data(*.MDF): and Log(*.LDF)
4. Now to test Create a new Database it will get created in the new Database Defult location. But when you create content DB it will create the data files in the default location which you have previously. To aviod that restart teh SQL service or reboot the SQL Box.

↑ Back to the top


More Information

 

↑ Back to the top


Keywords: kb, vkball

↑ Back to the top

Article Info
Article ID : 2000658
Revision : 4
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 104