Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

BULK Insert got incorrect data

$
0
0

Hi Guys,


I have an excel data.
just save the file as CSV and TXT file format.
I'm using  BULK insert to replicated or insert the data into temporary table and i got an error.
I notice also when i tried to change the size of each datatype to a bigger size something like
10 for itemid and the rest i change it to 100 and it works fine but all those records with comma
the records was not completed especially for descript, model and category column where some text has a comma.

Any idea guys to fix this issue. Thanks.

Bulk Insert #VPTable
From '\\Reportdata\Axapta Reports\MPA TEST DATA.csv'
With
(
DATAFILETYPE = 'char',
FieldTerminator = ',',
CODEPAGE = 'OEM',
KEEPNULLS,
RowTerminator = '\n', FirstRow = 2)

CSV FILE

RESULT after BULK INSERT:



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>