ExecuteReader()这只是一个方法啊,SqlCommand cmd = DB.createSqlcommand("select * from denglu where id=1"); 你觉得这错没?
SqlConnection呢? SqlCommand cmd = new SqlCommand(sql, con); SqlDataReader da = cmd.ExecuteReader();