I´ve got the following connectionstring:
string connectionstr = "Data Source=.\\SQLEXPRESS;" + "AttachDbFilename=|DataDirectory|\\..\\..\\Datenbank\\FarmersCalc.mdf;" + "Integrated Security=True;" + "User Instance=true;";
As i know, |DataDirectory|
is the /bin/debug
- folder.
The mdf file is in the folder Datenbank
, that is for sure in the folder that I typed in in the connection string.
It seems, as ..\\
would not work.
Does anybody have a solution for that problem?