I have an application JigSaw that uses a database TopScores.mdf
which it is not included in the project. What I want to do is make the application find the database
This is happening because you don't leverage the User Instance=true;
when you connect to it. You literally told SQL Server to attach the database to the running SQL instance from the directory you first loaded it from.
Detach the database by hand from the running SQL instance, change your connection string to use User Instance=true;
, run it from the Debug
folder, and then run it from the Desktop
, and you'll see success.