How to create table dynamically using source txt/csv files in sql server table.

  • I have data in text files as attachments/below. SO header row position will be change and delimiter cama(,) semicolon(;) .. etc.. I need to load in each file as separate table from header and data only.. can you please give me solution any stored procedure /SSIS package code..

     

    This is first file

    today date: 4/28/202

    ID,Name,Sal

    10,mahi,2000

    20,ravi,3000

    30,raju,1000

    Total emp: 20

    • This topic was modified 3 years, 12 months ago by  DBA.k.
    Attachments:
    You must be logged in to view attached files.
  • Please provide sample DDL, INSERT statements and desired results (based on the sample data provided) if you would like people to provide a working solution.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

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

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