开发者

How to update MYSQL Database with data from Excel using ASP.NET?

开发者 https://www.devze.com 2023-02-14 14:12 出处:网络
I have an excel file which gets updated every 10 seconds through an automated process. I need exce开发者_JAVA技巧l data to be updated in MY-SQL database which is located on a remote server.

I have an excel file which gets updated every 10 seconds through an automated process. I need exce开发者_JAVA技巧l data to be updated in MY-SQL database which is located on a remote server.

How do I do that?

I have thought of following option: 1) Every 11 seconds, an Excel macro will run and will "Save as" excel as CSV file. (not sure whether this can be done by macro...just thinking) 2) This CSV file we will FTP to remote server using Windows Service. 3) On remote server, we will parse the csv file and Update MYSQL database.

Is this approach fine? Or do you have a better approach which requires less time to update the database?

Thanks!


I found following links to be more useful:

http://www.heritage-tech.net/908/inserting-data-into-mysql-from-excel-using-vba/

http://vbaexcel.eu/vba-macro-code/update-mysql-database-php

I hope this helps someone having similar problem as mine.


You can connect to the Excel spreadsheet using ODBC connection, read the data, and post it to the MySQL database, maybe through some sort of web service access, or via a saved CSV file?

0

精彩评论

暂无评论...
验证码 换一张
取 消