使用CSV阅读器读取CSV文件并插入SQL Server [英] Reading CSV file using CSV reader and inseting into SQL Server

查看:126
本文介绍了使用CSV阅读器读取CSV文件并插入SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CSV阅读器读取Csv文件
CSV文件不包含标题行.
当我使用sqlbulkcopy.writetoserver(csv)编写csv对象时
它给出错误对象引用未设置为对象的实例."
plz help

I am reading a Csv file using CSV reader
The CSV file does not contain header row.
When i m writng the csv object using sqlbulkcopy.writetoserver(csv)
it gives the error "Object reference not set to an instance of an object."
plz help

推荐答案

尝试以下操作:

快速CSV阅读器 [
Try this one:

A Fast CSV Reader[^]


这篇关于使用CSV阅读器读取CSV文件并插入SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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