• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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