I’m beginner in C# and SQL Server. Currently I’m developing a program, the problem is my database file is in DB folder inside project folder. When I try to detach the database file in SQL Server Management Studio it gives an error:
"Data Source=localhost;Initial Catalog=test;Integrated Security=true"
When I the change data source to this
"Data Source=db/test.mdf;Initial Catalog=test;Integrated Security=true"
it gives an error. I don’t know how to insert database file with project to InstallShield to create setup file.
You may set up connection using DATA-> new data source dialog. There you will set up all the parameters visually. I think the problem here is that full path is not specified. Also path should be in quotes.