Guest User

Untitled

a guest
Jan 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. mAD.Fill(MySqldSet, "tbltrackshipment");//Got the empty table of Mysql
  2.  
  3. // Loop through all rows of Sql server data table and add into MySql dataset
  4. DataRow NewRow;
  5.  
  6. foreach (DataRow row in SqldSet.Tables["tblStatusTracking"].Rows)
  7. {
  8.  
  9. NewRow=MySqldSet.Tables[0].NewRow();
  10. NewRow["BL"] = row["BL"];
  11. NewRow["ContainerNumber"] = row["ContainerNumber"];
  12. NewRow["Status"] = row["Status"];
  13. NewRow["FinalDest"] = row["Location"];
  14. NewRow["StatusDate"] = row["StatusDate"];
  15. MySqldSet.Tables[0].Rows.Add(NewRow);
  16. }
Add Comment
Please, Sign In to add comment