What is the most efficent way in ADO.NET to add every row in a datatable to a table in SQL?
For example, I have a list of tasks in an excel spreadsheet. I load it into a datatable, and now want to enter each of those tasks into the Tasks table in my SQL server.
I know a few ways to do it now, but I'm new to .NET and figured I'd try and learn the "right" way.
Thanks!
For example, I have a list of tasks in an excel spreadsheet. I load it into a datatable, and now want to enter each of those tasks into the Tasks table in my SQL server.
I know a few ways to do it now, but I'm new to .NET and figured I'd try and learn the "right" way.
Thanks!