[英]Insert .CVS data into access DB using VB.NET 2008
I would like to insert the content of a .CVS file into an Access .mdb database using VB.NET. 我想使用VB.NET将.CVS文件的内容插入到Access .mdb数据库中。 I know there's a lot of examples of this but they usually use TSQL commands (like the BULK command) that - as far as I know - I can't use with Jet 4.0. 我知道有很多这样的示例,但是据我所知,它们通常使用TSQL命令(例如BULK命令),但我无法在Jet 4.0中使用它。
The columns in the file are separated by semicolon just like that : 文件中的列用分号分隔,如下所示:
9.00;test colonne 2;2013 9.00;测试殖民者2; 2013
This is the first time I have to work with that kind of files and have no idea where to start. 这是我第一次必须使用此类文件,却不知道从哪里开始。 Please be gentle with me :D. 请对我温柔:D。
Thanks Simon 谢谢西蒙
Checkout the LINQ to CSV library. 检出LINQ to CSV库。 I have had much success with it in the past. 过去,我取得了很大的成功。
http://www.codeproject.com/Articles/25133/LINQ-to-CSV-library http://www.codeproject.com/Articles/25133/LINQ-to-CSV-library
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.