Apologies up front for the width on this post. If anyone has a tip on how I can post this better, I'm all ears. I am trying to insert a fixed-width text file into a table using bulk insert with a format file. The table matches the format file, which appears to match the data, yet I still get the error "String or binary data would be truncated." every time.I've attempted to import this both via a bulk insert/format file combo, and with a data transform. Neither one works. (Though I note that with the data transform, it won't do an implicit conversion between the first column's char(10) date field, and the smalldatetime field in the table. This has worked in the past. I do not know why it isn't working now. No new service packs or updates have been done on SQL. (SQL 2000, SP4)Here's the table:CREATE TABLE [medicare_fee_schedule_db] ( [effective_date] [smalldatetime] NOT NULL , [carrier_code] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [locality_psro] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [procedure_code] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [modifier] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [mfsdb_description] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_status] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_conversion_factor] [float] NULL , [mfsdb_update_factor] [float] NULL , [mfsdb_work_rvu] [float] NULL , [mfsdb_practice_rvu] [float] NULL , [mfsdb_malpractice_rvu] [float] NULL , [mfsdb_work_gpci] [float] NULL , [mfsdb_practice_gpci] [float] NULL , [mfsdb_malpractice_gpci] [float] NULL , [mfsdb_global_surgery_days] [char] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_preop_pct] [float] NULL , [mfsdb_intraop_pct] [float] NULL , [mfsdb_postop_pct] [float] NULL , [mfsdb_pctc_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_multisurg_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_bilat_surg_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_asst_surg_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_two_surg_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_team_surg_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_bill_med_supp_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_site_of_svc_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_cyr_full_fee] [money] NULL , [mfsdb_cyr_sos_full_fee] [money] NULL , [mfsdb_rel_proc_1] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_2] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_3] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_4] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_5] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_6] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_7] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_rel_proc_8] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_cyr_trans_amt] [money] NULL , [mfsdb_cyr_sos_trans_amt] [money] NULL , [mfsdb_cyr_trans_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_ahpb] [money] NULL , [mfsdb_base_endo] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_phys_superv_diag] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_fac_set_rvu] [float] NULL , [mfsdb_non_fac_set_rvu] [float] NULL , [mfsdb_perf_pmt_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_img_cap_ind] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [mfsdb_fac_img_amt] [money] NULL , [mfsdb_nfac_img_amt] [money] NULL , CONSTRAINT [XPKE_141] PRIMARY KEY CLUSTERED ( [effective_date], [carrier_code], [locality_psro], [procedure_code], [modifier] ) WITH FILLFACTOR = 90 ON [PRIMARY] ) ON [PRIMARY]GO
Here's the format file:6.0491 SQLCHAR 0 10 "" 1 effective_date2 SQLCHAR 0 5 "" 2 carrier_code3 SQLCHAR 0 2 "" 3 locality_psro4 SQLCHAR 0 5 "" 4 procedure_code5 SQLCHAR 0 2 "" 5 modifier6 SQLCHAR 0 50 "" 6 mfsdb_description7 SQLCHAR 0 1 "" 7 mfsdb_status8 SQLCHAR 0 10 "" 8 mfsdb_conversion_factor9 SQLCHAR 0 8 "" 9 mfsdb_update_factor10 SQLCHAR 0 10 "" 10 mfsdb_work_rvu11 SQLCHAR 0 10 "" 11 mfsdb_practice_rvu12 SQLCHAR 0 10 "" 12 mfsdb_malpractice_rvu13 SQLCHAR 0 6 "" 13 mfsdb_work_gpci14 SQLCHAR 0 6 "" 14 mfsdb_practice_gpci15 SQLCHAR 0 6 "" 15 mfsdb_malpractice_gpci16 SQLCHAR 0 3 "" 16 mfsdb_global_surgery_days17 SQLCHAR 0 8 "" 17 mfsdb_preop_pct 18 SQLCHAR 0 8 "" 18 mfsdb_intraop_pct 19 SQLCHAR 0 8 "" 19 mfsdb_postop_pct20 SQLCHAR 0 1 "" 20 mfsdb_pctc_ind21 SQLCHAR 0 1 "" 21 mfsdb_multisurg_ind 22 SQLCHAR 0 1 "" 22 mfsdb_bilat_surg_ind23 SQLCHAR 0 1 "" 23 mfsdb_asst_surg_ind24 SQLCHAR 0 1 "" 24 mfsdb_two_surg_ind25 SQLCHAR 0 1 "" 25 mfsdb_team_surg_ind 26 SQLCHAR 0 1 "" 26 mfsdb_bill_med_supp_ind27 SQLCHAR 0 1 "" 27 mfsdb_site_of_svc_ind28 SQLCHAR 0 11 "" 28 mfsdb_cyr_full_fee29 SQLCHAR 0 11 "" 29 mfsdb_cyr_sos_full_fee30 SQLCHAR 0 5 "" 30 mfsdb_rel_proc_131 SQLCHAR 0 5 "" 31 mfsdb_rel_proc_232 SQLCHAR 0 5 "" 32 mfsdb_rel_proc_333 SQLCHAR 0 5 "" 33 mfsdb_rel_proc_434 SQLCHAR 0 5 "" 34 mfsdb_rel_proc_535 SQLCHAR 0 5 "" 35 mfsdb_rel_proc_636 SQLCHAR 0 5 "" 36 mfsdb_rel_proc_737 SQLCHAR 0 5 "" 37 mfsdb_rel_proc_838 SQLCHAR 0 11 "" 38 mfsdb_cyr_trans_amt39 SQLCHAR 0 11 "" 39 mfsdb_cyr_sos_trans_amt40 SQLCHAR 0 1 "" 40 mfsdb_cyr_trans_ind41 SQLCHAR 0 9 "" 41 mfsdb_ahpb42 SQLCHAR 0 5 "" 42 mfsdb_base_endo43 SQLCHAR 0 1 "" 43 mfsdb_phys_superv_diag44 SQLCHAR 0 10 "" 44 mfsdb_fac_set_rvu45 SQLCHAR 0 10 "" 45 mfsdb_non_fac_set_rvu46 SQLCHAR 0 1 "" 46 mfsdb_perf_pmt_int47 SQLCHAR 0 1 "" 47 mfsdb_img_cap_ind48 SQLCHAR 0 11 "" 48 mfsdb_fac_img_amt49 SQLCHAR 0 11 "\r\n" 49 mfsdb_nfac_img_amt
And the first 5 lines of the data. Again, sorry about the width.01/01/200600510000073T Delivery, comp imrt A00037.8975001.00000000000.000000000.000000000.1301.00000.84600.752XXX00.0000000.0000000.00000300000 100000583.0500000583.05 00000583.0500000583.05 000000.00 00000018.070000018.07 00000000.0000000000.0004/01/200500510000073T Delivery, comp imrt A00037.8975001.01500000000.000000000.000000000.1301.00000.85800.752XXX00.0000000.0000000.00000300000 100000589.6400000589.64 00000589.6400000589.64 000000.00 00000018.020000018.02 00000000.0000000000.0001/01/200600512000073T Delivery, comp imrt A00037.8975001.00000000000.000000000.000000000.1301.00000.83900.722XXX00.0000000.0000000.00000300000 100000578.1100000578.11 00000578.1100000578.11 000000.00 00000018.070000018.07 00000000.0000000000.0004/01/200500512000073T Delivery, comp imrt A00037.8975001.01500000000.000000000.000000000.1301.00000.83800.722XXX00.0000000.0000000.00000300000 100000575.8400000575.84 00000575.8400000575.84 000000.00 00000018.020000018.02 00000000.0000000000.0001/01/200600522000073T Delivery, comp imrt A00037.8975001.00000000000.000000000.000000000.1301.00000.85400.382XXX00.0000000.0000000.00000300000 100000586.7100000586.71 00000586.7100000586.71 000000.00 00000018.070000018.07 00000000.0000000000.00
Any ideas or help would be appreciated. Thanks.