public static readonly string ConnStr = "server=.;uid=sa;pwd=;database=Fly";
public static void FillDataTable(string sql, DataTable dt, params SqlParameter[] param)
{
SqlConnection cn = new SqlConnection(ConnStr);
SqlDataAdapter ada = new SqlDataAdapter(sql, cn);
ada.Fill(dt);
cn.Close();
cn.Dispose();
}