[FIX] Web applications cannot be created after MSSQL data location has been changed

Article ID: 1654 
Last Review: Oct,6 2008
Author: Oleg Beznosov
Last updated by: system APPLIES TO:
  • Plesk 8.1 for Windows
  • Plesk 8.2 for Windows

Symptoms

 If data location of MSSQL databases has been changed to a different server instead of the original one,  Plesk is uable to create new web applications. The action fails with the error:

Error: Package installation failed Error occurs during script performing. Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\08c43cec-3c35-4359-936a-9399d23008ac.mdf' may be incorrect.

CREATE DATABASE failed. Some file names listed could not be created. Check previous errors.

Cause

When Plesk creates new application that uses MSSQL database, it determines the current MSSQL databases location by sending a request to MSSQL server

select filename from master.dbo.sysdatabases where name = 'master'


The answer is processed by Plesk, and Plesk should point to the real database location. If it’s not, the records in MSSQL server need updating as per the solution below:

Resolution

Update information in table master.dbo.sysdatabases manually according to example below:

sp_configure 'allow updates', 1
GO


Configuration option 'allow updates' changed from 0 to 1. Run the RECONFIGURE statement to i

RECONFIGURE WITH OVERRIDE
GO
update master.dbo.sysdatabases set filename='E:\MSSQL\master.mdf' where name = 'master'
GO
sp_configure 'allow updates', 0
GO


Configuration option 'allow updates' changed from 0 to 0. Run the RECONFIGURE statement to install.

RECONFIGURE WITH OVERRIDE
GO



Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields