erutledge
Starting Member
1 Post |
Posted - 2009-04-02 : 13:02:05
|
I've created a .fmt file and can successfully load 1 row of my .csv file, using it, but for some reason, it doesn't load the rest!!! Here are the contents of the .csv file:"760915"," 1 5 LB"," TOPPING M & M PLAIN CRUSHED"," 198"," 109/03/01"," 109/03/3 30"," A"," 19.240"," 760960"," 30.800",,"760915"," 1 5 LB"," TOPPING M & M PLAIN CRUSHED"," 198"," 109/04/01"," 109/04/3 30"," A"," 19.920"," 760960"," 30.800",,"760915"," 1 5 LB"," TOPPING M & M PLAIN CRUSHED"," 355"," 109/03/31"," 109/04/0 7"," M"," 19.040"," 760960"," 30.450",,my .fmt file looks like this:9.0121 SQLCHAR 0 0 "\"" 0 x SQL_Latin1_General_CP1_CI_AS2 SQLCHAR 0 0 "\",\"" 1 old_item SQL_Latin1_General_CP1_CI_AS3 SQLCHAR 0 0 "\",\"" 2 pack_size SQL_Latin1_General_CP1_CI_AS4 SQLCHAR 0 0 "\",\"" 3 description SQL_Latin1_General_CP1_CI_AS5 SQLCHAR 0 0 "\",\"" 4 contract_num SQL_Latin1_General_CP1_CI_AS6 SQLCHAR 0 0 "\",\"" 5 contract_start SQL_Latin1_General_CP1_CI_AS7 SQLCHAR 0 0 "\",\"" 6 contractend_andday SQL_Latin1_General_CP1_CI_AS8 SQLCHAR 0 0 "\",\"" 7 term SQL_Latin1_General_CP1_CI_AS9 SQLCHAR 0 0 "\",\"" 8 current_price SQL_Latin1_General_CP1_CI_AS10 SQLCHAR 0 0 "\",\"" 9 new_item SQL_Latin1_General_CP1_CI_AS11 SQLCHAR 0 0 "\"," 10 new_price SQL_Latin1_General_CP1_CI_AS12 SQLCHAR 0 0 "\",\r\n" 0 deleted SQL_Latin1_General_CP1_CI_ASAnd the SQL statement I'm using to load is:BULK INSERT mb_contract_changesFROM 'C:\cntchg.csv' WITH (ROWTERMINATOR = '/n', FORMATFILE='C:\cntchg.fmt');Does anyone see what I'm doing wrong? Thanks for your help!!!erutledge |
|