在我的数据库连接路径下方,但我无法连接到数据库
SqlConnection cn = new SqlConnection("Data Source=.F:\Database.mdf");
SqlCommand cmd = new SqlCommand("SELECT * FROM stu1", cn);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds);
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();