473,809 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dumping datatable to MS Access table

VMI
How can I dump a datatable into an Access table (which contais exactly the
same structure)?
Somebody suggested doing this with a dataAdapter. I don't want to run an
Insert query for each record (I assume that if the datatable and the Access
table have the same structure, I can just dump it from one place to the
other). I'd be dumping data to the same Access table several times (append).

Thanks.
Nov 16 '05 #1
2 5604
Look into merging DataSets. Then using the data adapter to update the
Access database with the merged DataSet.
"VMI" <vo******@yahoo .com> wrote in message
news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
How can I dump a datatable into an Access table (which contais exactly the
same structure)?
Somebody suggested doing this with a dataAdapter. I don't want to run an
Insert query for each record (I assume that if the datatable and the Access table have the same structure, I can just dump it from one place to the
other). I'd be dumping data to the same Access table several times (append).
Thanks.

Nov 16 '05 #2
VMI
Thanks for the reply.
If I have the datatable filled up, what data adapter method would I use to
do this? Basically, I'll be running a loop that'll continuously fill the
datatable. Then every 100 records, I want to dump the datatable data into
the Access table and delete the DataTable's data, which will be filled up
again with another 100 records . Why would I need to merge the dataset?

Thanks.
"Brad" <no****@nowhere .net> wrote in message
news:10******** *****@corp.supe rnews.com...
Look into merging DataSets. Then using the data adapter to update the
Access database with the merged DataSet.
"VMI" <vo******@yahoo .com> wrote in message
news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
How can I dump a datatable into an Access table (which contais exactly the same structure)?
Somebody suggested doing this with a dataAdapter. I don't want to run an
Insert query for each record (I assume that if the datatable and the

Access
table have the same structure, I can just dump it from one place to the
other). I'd be dumping data to the same Access table several times

(append).

Thanks.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1989
by: Greg Brant | last post by:
Hi, how can i backup a table / entire DB and get the index's as well as the data / create table's etc cheers Greg
1
1474
by: VM | last post by:
How can I continually dump a datatable into an Access table? The Access table and the datatable have the same structure so every X records, I can dump the data into the Access table, flush the datatable, and then continue to fill the datatable. Thank.
0
435
by: VMI | last post by:
My windows app contains a process that loads data to a datatable. Is it possible to load this data into an Access table with exactly the same table structure? For example, if my process adds 100 rows to a datatable, I'd like to be able to dump the datatable into the Access table every 5 records, clear contents of the datatable, and then fill the datatable again. During the last "dump", the datatable would contain the last 5 records, while...
1
6898
by: VMI | last post by:
I have a filled datatable and I need to copy this data into an Access table with exactly the same table structure. Can I do this without having to run an Insert query for every line of the datatable? also, I'll be doing this several times (I'll have several datatables that will be copied into the same Access table) so I would have to need to append to the existing Access table. If the table in Access doesn't need to be created (ie. copy...
2
2042
by: VMI | last post by:
I have a datatable with emplcodes and I need to extract, from my Access table, all records that contain an emplcode included in my datatable. In other words, I need to do a query that accesses a datatable and an access table. How can this be done? I can't load the Access table into a datatable; it's too much data. Thanks.
3
6344
by: Solel Software | last post by:
Hello, I have a basic question. I have a DataTable of information without a database store (it's only in memory). I am looking to somehow query the DataTable to find out which row(s) satisfy certain criteria and then update the data in those rows, all without any sort of database access (no DataAdapters or anything). The table does not have a primary key so I've been using DataTable.DefaultView.Find to get the index of the row that...
11
1805
by: Geoff | last post by:
Hi I have a DataTable with thousands of rows. I want a quick way to insert the rows into a table in an Access database with the same structure. I have been using an update command but found it to be very slow i.e. there are about 100,000 rows of data. Can anybody suggest a quick way to do it? Geoff
9
4030
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New DataTable("SliceInfo") Dim tblSliceRatings As New DataTable("SliceRatings") '.... All the adding datacolumns, datarows, etc. goes here.. DatasetInit.Tables.Add(tblSliceInfo)
9
6996
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got a routine that builds a table using different queries, different SQL Tables, and adding custom fields. It takes a while to run (20 - 45 seconds) so I wrote a thread to handle the table population. Whenever I call the thread, I pass it a structure containing the table and a few other parameters. The table goes in as a reference, but the other items are passed normally.
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.