Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Bulk insert 0 rows effected

$
0
0

Hi

I am trying to bulk insert pipe delimited text file below is my text file looks like

a|b|c|

when I look at the file it has lot of spaces after the data so when I try to bulk insert it is searching for end of file I believe

I am inserting through the store procedure.  My bulk insert statement is

SET@SQL="BULK INSERT #temp FROM '"+@sourceFile+

            "' WITH (FIELDTERMINATOR='|', ROWTERMINATOR ='"+Char(10)+"', FIRSTROW=2)"

The result is 0 rows effected.  I don't know why.

Can anybody help me. 

Thanks

Mary Sunish



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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