How to Import Text file with Caret '^' delimiter

  • Hi All,

    Can you please advise How to Import Text file with Caret '^' delimiter data format. The import/export wizard does not show the Caret delimiter option.

    Thanks in Advance.

    Rembersu

  • Lookup BULK INSERT in Books OnLine.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • Hi,

    Thank you for your reply . I have tried bulkinsert and it works with the below syntax for the caret delimited file. i was trying to create a ssis package which will load the files on regular basis. is there any way that i can make it work for SSIS.

    BULK INSERT testdb.dbo.testload

    FROM 'c:\test\testload.csv'

    WITH

    (

    FIELDTERMINATOR ='^',

    ROWTERMINATOR = '',

    FIRE_TRIGGERS

    )

    Thank & Regards

    Rembersu

  • You may want to move this thread to the SSIS forum then.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • Thank you. I have post the request in the SSIS Forum.

    Thank you

    Remebersu

  • rembersu (12/22/2008)


    Hi All,

    Can you please advise How to Import Text file with Caret '^' delimiter data format. The import/export wizard does not show the Caret delimiter option.

    Thanks in Advance.

    Rembersu

    try with BCP / SQLCMD command for more info see SQL BOL.

  • If you want to use SSIS just use the caret as the column delimiter for the input file. It will not show as an available choice from the drop down so just type it in.

Viewing 7 posts - 1 through 6 (of 6 total)

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