I wanted to know what would be the easiest / best way to get a dataset contained within a datagridview into a SQL Server database.
Points to note:
The data comes from a .CSV file that is imported into the application. The user then has the option to modify cell data
They then press a button and hopefully upload to SQL Server table.
It is given that the column names will all match and the datatypes should match too.
Commands will only be insert. no delete or update.
LINQ is ok too.
You can use SQLBulkcopy. It can take a Datatable and then upload the content to to a SQL Server database.