[HELP]C# Importing DataTable data into Access DB

For editing my Access database I use DataTable to load some data with the following code

public static DataTable SelectFromTable(string strSql) { OleDbConnection c = MakeConnection(); OleDbCommand comm = new OleDbCommand(); comm.CommandText = strSql; comm.Connection = c; DataTable dt = new DataTable(); OleDbDataAdapter da = new OleDbDataAdapter(comm); da.Fill(dt); c.Close(); return dt; } 

So yeah! after doing adds and removes to datatable through the program its self How could i move all the new datatable data to my Access database?

by Athl1n3 via /r/csharp

Leave a Reply