.CSV到的.mdb转换在.NET [英] .CSV to .MDB conversion in .NET

查看:238
本文介绍了.CSV到的.mdb转换在.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用ado.net,然后循环的记录和写入数据的.csv文件转换成一个.mdb文件为CSV格式。

I have converted a .mdb file to CSV format using ado.net and then looping on the recordset and writing the data in a .csv file.

现在我需要做的相反。我要CSV文件(Access表是具体的)转换为.mdb文件。是否有任何编程code来帮助我呢?

Now I need to do the reverse. I have to convert the CSV file to a .mdb file (an access table to be specific). Is there any programming code to help me out with this?

推荐答案

由于MS Access支持ODBC,你可以阅读你的CVS文件作为普通的文本文件,分析它,并在您的MS Access数据库上运行的插入/更新脚本。

As MS Access supports ODBC, you can read your CVS file as usual text-file, parse it and run insert/update script in your MS Access database.

检查 MSDN 了解详细信息

这篇关于.CSV到的.mdb转换在.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆