How can I use c#/vb.net to bulk insert a datatable into an access db table?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-21 02:38 AM
Collection data containing 5000Rows x 30 Columns needs to be passed as data table(dt) into code stage and that dt needs to be inserted into MS Access DB using either C#/VB.net/ or any other way. Thanks in advance.
------------------------------
Hemanth Kumar
ASE
Accenture
Europe/London
------------------------------
------------------------------
Hemanth Kumar
ASE
Accenture
Europe/London
------------------------------
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-21 03:22 AM
Hi Hemanth,
MS Access does not offer a way to bulk insert records. Supply arrays as parameters to the query may be the way to go. Recommend you take a read on the following StackOverflow article:
https://social.msdn.microsoft.com/Forums/en-US/1256c0c0-f836-4a5c-8772-c3001839d052/bulk-insert-in-ms-access?forum=adodotnetdataproviders
------------------------------
Bruce Liu
Senior Product Consultant, Professional Services
Blue Prism
Australia/Sydney
------------------------------
MS Access does not offer a way to bulk insert records. Supply arrays as parameters to the query may be the way to go. Recommend you take a read on the following StackOverflow article:
https://social.msdn.microsoft.com/Forums/en-US/1256c0c0-f836-4a5c-8772-c3001839d052/bulk-insert-in-ms-access?forum=adodotnetdataproviders
------------------------------
Bruce Liu
Senior Product Consultant, Professional Services
Blue Prism
Australia/Sydney
------------------------------
