• 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.

Invalid value for key 'attachdbfilename'

E

esqueleto

Guest
I have a 7.5.6 Plesk hosting with SQL Express installed.

I don't have access to the server, I only have an account in the server.

What is the connection string to access a database in the App_Data folder?
I try to use
data source=localhost\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|ExampleDB.mdf;User Instance=true

or

data source=localhost\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=C:\xxx\ExampleDB.mdf;User Instance=true

and I get always the same error?
What I'm doing wrong? What I have to ask the hosting provider?

tkx in advance
Paulo Aboim Pinto
Odivelas - Portugal
 
Back
Top