Question : Getting violation of primary key during bulk insert.

Using SQL 2008 and getting error Msg 2627, Level 14, State 1, Line 1 during bulk insert from .txt file that was exported from parallel server using bcp.

I know this error can not be right because the table that was used to create the file to be imported had the primary key that would prevent this error from ever existing.

I am new to the bulk insert statement

Answer : Getting violation of primary key during bulk insert.

Problem Solved, I added a go statment between the series of of Truncate Table and bulk insert statements.
Random Solutions  
 
programming4us programming4us