I'm having a problem with my local database file .mdf
. After create my setup project, I read on internet that my .mdf
files should be in the User's application data folder, that's why I'm having permissions error on my .mdf
files. So, in the project setup, I right click and add a special folder "User´s Application Data Folder" and drag my .mdf
files there.
If this will create a folder on the Windows app data of the client, with my database files, what should be my connection string?
Right now is this way:
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DatabaseIris.mdf;Integrated Security=True"