This is my first time with SQL Server 2014. I normally use Access database.
My question is how can I move the .mdf
file (database file) to my application path to use it on different machines?
I'm using this connection string in the app.config
:
<connectionStrings>
<add name="Conn"
connectionString="Server = DESKTOP-TP1616Q; Database=Exchange_DB; user Id=sa;Password=Password1;"/>
</connectionStrings>
How can I change it to read from a .mdf
file in the application folder(Debug) ?
My Question is how to change the connection string to make the application read from the moved mdf in the Debug folder, thank you.