Bulk INsert with {LF} Row Delimiter

  • I need to write a bulk insert statement with {LF} as the row delimiter and a "," as the column delimeter. Below is what I have

    BULK INSERT CaseLevelData.dbo.medpar2007_hosp_costedcsv

    FROM 'D:\medpar2007_hosp_costed.txt'

    WITH

    (FIELDTERMINATOR = '","',

    ROWTERMINATOR = '')

    GO

    But I get the following error:

    The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.

    Am I using the correct ROWTERMINATOR in the statement?

  • [font="Verdana"]have you tried using char(10) as the row terminator?[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply