DTS job - loading data from CSV file

  • Hi,

     

    1.Add a data flow task.

    2.In data flow,select flat file source

    3.Give a name for connection manager.

    4.Click on browse,select the file file c:\data,

    5.Select the checkbox if the csv has column names as headers

    6.Click on preview check if column have been mapped.

    7.Select OLEDB destination.select the table in which you have to load.

    8.Execute the job

    Regards

    Usha

  • You may be able to use something like the the following, too.

     

    BULK INSERT  NorthWind.dbo.[table_name]

       FROM 'C:\InputFile.csv'

        WITH (FieldTerminator = ',',

       FirstRow = 2)  -- Use if csv file has column names

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

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