I have a Winforms application and I would like to save my database.mdf to %USERPROFILE% folder. Does anyone know what i need to write to the connection string for this to work? Simply using %USERPROFILE% does not work.
Winforms application : How to save .mdf to Windows %USERPROFILE% folder?
111 views Asked by Athanasios Emmanouilidis At
1
You can refer to this
You will get the path in string. Now simply create your connection string as usual