Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Bulk Insert with Null Value

$
0
0

I'm having trouble inserting null value from a bulk insert statement.

The first Row inserted successfully,but the second not.i also checked with CHECK_CONSTRAINTS,but the problem remains

please help me

Here is an extract of the csv file:

First Name, Last Name, AgeName1,HK,23Name2,YH,

Here the bulk Insert statement:

Bulk insert dbsct 
FROM 'C:\Test1\dstd.CSV'
WITH (
    FIRSTROW = 2,
    FIELDTERMINATOR =',',
    ROWTERMINATOR = '\n'
KEEPNULLS
    )



Viewing all articles
Browse latest Browse all 5123

Trending Articles



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