Hello I have a Datatable and with 36 columns and about 112000 records and an empty mdb file, what is the best way to add that table to the empty mdb database?
do i have to use the SQL Command CREATE TABLE and add each column manually to the created Datatable then use the SQL insert command?
is there something like SqlBulkCopy that can be used for this task?
note the Datatable is created at runtime and never been in a database most of the data is taken from XML files
I think the best way is to use
OleDBAdapterclass. You need to first build your database before you proceed this process. As it is needed by theOleDBAdapter. If you recall, you use the DataAdapter’sFill()method to read the contents of a table in a database and fill our locally-cached DataTable object.There are 3 steps to saving data in ADO.Net:
Fill()methodUpdate()methodHere’s the code,