|
-
Apr 1st, 2008, 12:49 AM
#1
Thread Starter
Just Married
[2.0] Datatable to MS Access
Hi all
I have datatable and MS Access table, both have same database schema.
But please tell me that without using loop can I save entire datatable to MS Access table.
Is that best way of programming?
Thanks
Last edited by shakti5385; Apr 3rd, 2008 at 02:02 AM.
-
Apr 1st, 2008, 02:31 AM
#2
Re: [2.0] Datatable to MS Access
Create an OleDbDataAdapter with an appropriate InsertCommand and call its Update method, passing the DataTable as a parameter. Saving bulk data to Access is always done that way. Whether or not the data came form that database in the first place is irrelevant.
-
Apr 1st, 2008, 04:29 AM
#3
Thread Starter
Just Married
Re: [RESOLVED] [2.0] Datatable to MS Access
Is that best way of programming?
-
Apr 1st, 2008, 07:41 AM
#4
Re: [RESOLVED] [2.0] Datatable to MS Access
Using MS Access? 
Use what works for you. Try this out and if it works for you, good. You needn't reinvent the wheel.
-
Apr 3rd, 2008, 02:03 AM
#5
Thread Starter
Just Married
Re: [2.0] Datatable to MS Access
 Originally Posted by jmcilhinney
Create an OleDbDataAdapter with an appropriate InsertCommand and call its Update method, passing the DataTable as a parameter. Saving bulk data to Access is always done that way. Whether or not the data came form that database in the first place is irrelevant.
Hi JMC can you describe some code
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|