Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27184

VS 2010 VB.NET: How To Copy Data From Excel Workbook To Specific Table In SQL Server Database

$
0
0
Hi All,

I need help with an example to achieve the following task.

I have an excel workbook which contains 4-5 columns, No Headers and 40,000 rows of data. I would like to use a form which would allow the user to use a ShowFiledialog to locate the specific file and copy the contents of this sheet to a SQL Server Database Table. The data from the spreadsheet columns should however get copied to the correct columns in the SQL DB Table.

I also need to concatenate the values from each cell on each row so that duplicate entries do not get added to the table. If an updated spreadsheet is received the next day, the new data should be appended to the existing data in the same table.

If this requires the use of a dataset or datatable, I need resources to study and be familiar on using/manipulating data stored in these type of variables.

I would really appreciate if someone could help me achieve this.

Thanks,

Steve

Viewing all articles
Browse latest Browse all 27184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>