none
how to update all rows in data table using C# RRS feed

  • General discussion

  • hi,

    i have 2000 records ,that record fetching in to data table and bulk copy to Sql server data base,in that requirement we have to update statically all rows in that table, here with out using for each and for loops. if any one know update all rows in multiple columns in at a time. i am using this code it is working fine ,but we need with out loop.because when loading time it will take some time

    foreach (DataRow row in dataTable.Rows)
               {
                       row["N_TITLE"] = "xyz";

                    row["N_ID="123";

                  row["D_set"]="document";

               row["D_ID"]="25"'

                 }

    Tuesday, November 19, 2013 6:22 AM

All replies