• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Connect via SQLExpress to a .mdf Databasefile

McSchwaiger

New Pleskian
I try to connect to a .mdf database via SQLExpress (DotNetNuke Application)

On my local machine it works immediately, DotNetNuke intalls without problems.

On the Server i get the errormessage: ERROR: Could not connect to database specified in connectionString for SqlDataProvider

The Connectionstring is:
Data Source=.\SQLEXPRESS;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;

Is that a security issue?
I can attach the .mdf Database in SQL Server Management Studio Express without problems, so SQLExpress should have all the rights it needs to work...
Of course I detached the .mfd file before I try to connect with this connectionstring.

What can I do?
 
Back
Top