/// <summary> /// Especially useful for the binary tables, which contain huge chunks (files) /// </summary> private void CopyBinRowwise(ddl db1, ddl db2, string tablename) { var binids_to_copy = new List <int>(); Istatement sel_keys = new plainselect( new string[] { "BinID" }, tablename ); using (var p = new commandadhoc(db1, sel_keys)) { using (var table = p.ExecuteSelectToNew()) { foreach (DataRow dr in table.Rows) { binids_to_copy.Add(Convert.ToInt32(dr[0])); } } } /* prepare a command which selects the data from a row */ /* -!!- continue here if time, ever * when ready, undo commenting out call in above function */ }