Quantcast
Channel: Bulk Insert Issue with BCP
Viewing all articles
Browse latest Browse all 2

Bulk Insert Issue with BCP

$
0
0

It seems that the target table does not match your expectations.

Since I don't know exactly what you are doing, I will have to resort to guesses.

I note that you export query goes:

  SELECT * FROM FS84RPT.dbo.PS_PO_LINE Inner Join

And then you are importing into a table called PS_PO_LINE as well. But for your operation to make sense the import PS_PO_LINE must not only have the columns from the PS_PO_LINE, but also all columns from PS_RECV_LN_ACCTG. Maybe your SELECT should read

  SELECT PS_PO_LINE.* FROM FS84RPT.dbo.PS_PO_LINE Inner Join

or use an EXISTS clause to add the filter of PS_RECV_LN_ACCTG table. (Assuming that it appears in the query for filtering only.)


Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Viewing all articles
Browse latest Browse all 2

Trending Articles



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