Solved

Update a DataTable to the database.

Posted on 2016-09-06
3
36 Views
Last Modified: 2016-09-09
How do I write the contents of a DataTable to the database?
0
Comment
Question by:HLRosenberger
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 41786303
That depends on how the data got into the DataTable in the first place. If you used a SqlDataAdapter and queried the db from a single table then you can use the SqlDataAdapter.Update method. Can you post your code if that did not help.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 41791495
thanks
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41791589
Not a problem HLRosenberger, glad I was able to help.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now