Technical FAQs

Ask a Question

Modifying the Default Database Path and the SQL Errorlog Path

Issue
If databases, particularly the system databases, have been relocated to a new drive/volume or the disk configuration has changed,
a recommended best practice would be to change the SQL Server Agent log path as well as the Default Database locations path.

Product
Struxureware Power Monitoring 7.0.x
Power Monitoring Expert 7.2.x, 8.x
ION Enterprise
ION EEM

Environment
SQL Server 2005, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014

Cause
The SQL Agent may fail to start, or creating a database may fail if the original drive letter\path does not exist anymore.

Resolution
*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*


To change the SQL Agent log path:
1. In SQL Server Management Studio expand SQL Server Agent
2. Right-click on Errorlogs
3. Click on Configure
4. Change the Error Log File path to the new desired location

To change the Database Default Locations path
1. In SQL Server Management Studio right-click on the SQL Server name
2. Choose Prooperties
3. Choose Database Settings
4. Under "Database Default Locations" modify the Data and Log paths to the new, desired location
Was this helpful?
What can we do to improve the information ?