How to load the data from source when there are two delimiters using SSIS?

Ramana Kopparapu 246 Reputation points
2024-06-26T06:22:16.23+00:00

Below is my data in source document. The document has two delimiters like tilde(~) and pipe(|)..

~id~|~name~|~gender~|~age~

~101~|~ABC~|~M~|~28~

~102~|~DEF~|~F~|~27~

How can I load the data into SQL table Emp?

Please look into this and do neeedful

Thanks in Advance.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,502 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 34,756 Reputation points
    2024-06-26T06:44:42.2633333+00:00

    Hi @Ramana Kopparapu,

    You may set the custom delimiters when load the file.

    And then you may use replace function to remove tilde(~).

    Please check below steps.

    User's image User's image

    User's image

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 42,746 Reputation points
    2024-06-26T06:48:11.9133333+00:00

    Use only the tilde ~ as column delimiter and ignore every second column in the import data flow.

    0 comments No comments