SqlConnection conn1 = new SqlConnection("Data Source=.\\SQLEXPRESS;attachdbfilename=" + Server.MapPath("~/App_Data/PM.mdf") + ";Integrated Security=True;"); conn1.Open();