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 4 years, 6 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.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

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

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