Read data from Excel 2003 to write to SQL

Closed
jo - 19 Aug 2010 à 10:49
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Aug 2010 à 09:32
Hello,

Help please
I have to read data from Excel 2003 to write to SQL server using .net,
so every time user modify data it shuld refelect to sql.

Requirement for, i have to convert excel data to barcode
we normally do with with sql query, quesry will send to intermec printer.

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
20 Aug 2010 à 09:32
You would need to open connection to data base in excel
then use the query to update the data. Search for ADO

General flow is
1. create ado object
2. open connection to database
3. run sql statements
4. commit changes
5. close connection