Cannot fetch a row from OLE DB provider “BULK” for linked server “(null)”

前端 未结 12 1544
粉色の甜心
粉色の甜心 2021-02-18 13:24

I try to load my database with tons of data from a .csv file sized 1.4 GB. But when I try to run my code I get errors.

Here\'s my code:

USE [Intradata N         


        
12条回答
  •  南方客
    南方客 (楼主)
    2021-02-18 13:29

    I got the same error when I had a different number of delimited fields in my CSV than columns I had in my table. Check if you have the right number of fields in intramerge.csv.

    Methods to determine rows with issues:

    1. Open CSV in spreadsheet, add Filter to all data and look for empty values

    and here are the rows with less columns

    1. Use this page https://csvlint.com to create your validation rules and you can detect your problems in your CSV as well.

提交回复
热议问题