// set up connection to the database
myConnection = new System.Data.SqlClient.SqlConnection();
myConnection.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\Users\\Craig\\Desktop\\Project\\App_Data\\ASPNETDB.MDF;Integrated Security=True;User Instance=True;";
Hi this is my above connection string which works fine on my personal computer. I need to move the entrive Project folder to a different location which will not have access to the current address.
Could someone be so kind to invoke the server.mappath method into my string. I have tried my self but failed misserably.
I need a fast reponse
ty