Can we load csv file using BULK option with OPENROWSET

  • Hi All,

    I need some recommendations on

    How to load csv file using BULK option with OPENROWSET, Please Let me know

    Thanks,

    BB

  • BeginnerBachi (5/17/2012)


    Hi All,

    I need some recommendations on

    How to load csv file using BULK option with OPENROWSET, Please Let me know

    Thanks,

    BB

    have a look at this article recently posted

    http://www.simple-talk.com/sql/t-sql-programming/the-tsql-of-csv-comma-delimited-of-errors/

    i would recommend OPENROWSET - as does the author of the article

    MVDBA

  • You may also consider a SSIS solution using Bulk Insert Task

    Raunak J

  • I agree that an SSIS solution would typically be the best solution for transferring data to a CSV file. It tends to be more easily modified/debugged down the road.

    James

  • james.ciesla (5/18/2012)


    I agree that an SSIS solution would typically be the best solution for transferring data to a CSV file. It tends to be more easily modified/debugged down the road.

    James

    i think it's the other way round - the data is transferred from a CSV file

    MVDBA

  • Thanks for clarifying Mike, I thought he was trying to extract data into a CSV file.

    I still think SSIS would be a good choice if the CSV file comes in a consistent format.

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

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