I am currently working in c# application forms. I have created a .mdf database called Student_CB.mdf. Its located with in the solution for the project.
What i am trying to do is create a connection string to it. The string needs to stay localised to the solution as i will be opening the project on other PC's and not just my own PC.
The connection string in the properties states its the following string:
Data Source=(LocalDB)\v11.0;AttachDbFilename="C:\Users\Donald\Documents\Visual Studio 2013\Projects\DesktopApplication\DesktopApplication\Student_CB.mdf";Integrated Security=True
I have tried putting this into an SqlConnection in my c# but its not liking it.
Any help or ideas with where i am going wrong?