Bulk Insert question
I need to use bulk insert to populate a table. How do I get the DBMS to supply a primary key? When I try to execute the T-SQL command I get a primary key violation error as expected since the key is not incorporated in the datafile. I've been staring at the syntax, but don't see how to get a key assigned automatically. The code I am using is:
BULK INSERT DEPENDENT
FROM 'E:\ICS 321\HW2\Dependent View\DEPENDENT_data.txt'
WITH (FIELDTERMINATOR = ',',
ROWTERMINATOR = '
');
|