1. I have a database (Database1.mdf)
2. I set the connection string:
SqlConnection con = new SqlConnection(Properties.Settings.Default.Database1ConnectionString);
3. And I tried to modify the database (inserting some data in a table)
(X) The problem is that the database table is not modified after INSERT statement is executed. (X)
If I use the original path (D:\MyCSharpPrograms\WindowsFormApplication1\WindowsFormApplication1\Database1.mdf) it works (I can insert data); but the idea is that if I want to change the application location, moving it to another directory, the database
path won't be recognized.
What should I do? Please help! :(