Share via

SSIS Dynamic mapping

naza 21 Reputation points
2022-03-14T03:35:32.957+00:00

Hi

I wanted to create a single standard SSIS package that can be used for ETL of multiple streams. I want this to be dynamic so that I dont have to create package for each stream/ modify the meta data mapping each time. "Dynamic SSIS Mapping" suggestions are not of much help/ harder for me with C# script suggestions.
Eventually I landed using "Transfer SQL Server Objects Task" for this and is happy to see it solving my challenge.

Hence the question is : what is the difference between "Transfer SQL Server Objects Task" and normal "Data flow task" for like-to-like as-is ETLs? Why have not people suggested this option for 'dynamic SSIS mapping' ? Is there something I am missing in my understanding of this powerful 'Transfer SQL Server Objects Task" in SSIS?
What I am I Overlooking?

Notes:

  1. I have ~300 Data export ETL from my server to various external ones- all SQL Server so far
  2. I understand I have lift-shift option of objects as-is (Tables in my case) and cant apply filters/transformations. Thats ok. I am glad this task also gives 'Append/Replace' option as well.
  3. I understand the tables/schema cannot be programmed in via 'expressions', but are rather static choices
SQL Server Integration Services
0 comments No comments

Answer accepted by question author

ZoeHui-MSFT 41,551 Reputation points
2022-03-14T06:38:25.22+00:00

Hi @naza ,

The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server. For example, the task can copy tables and stored procedures.

When copying tables, you can indicate the types of table-related items to include in the copy process. The following types of items can be copied together with the related table: Indexes, Triggers, Full-text indexes, Primary keys and Foreign keys.

However, the Data Flow task encapsulates the data flow engine that moves data between sources and destinations, and lets the user transform, clean, and modify data as it is moved. Addition of a Data Flow task to a package control flow makes it possible for the package to extract, transform, and load data.

As far as I'm concerned, the Transfer SQL Server Objects Task is used to transfer the objects in sql server and the Data Flow task is more used to the data itself and support for multiple sources and destination.

transfer-sql-server-objects-task
data-flow-task

Temporarily, SSIS DFT doesn't support dynamic column mapping, you may create DFT programmatically with C# which you said is not helpful.

If you want this feature, I'd suggest that you may submit your requiremnet to the Microsoft feedback at this link https://feedback.azure.com/d365community/forum/04fe6ee0-3b25-ec11-b6e6-000d3a4f0da0

Your feedback enables Microsoft to offer the best software and deliver superior services, meanwhile you can learn more about and contribute to the exciting projects on Microsoft feedback.

Regards,

Zoe


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Olaf Helper 47,621 Reputation points
    2022-03-14T10:07:04.513+00:00

    I want this to be dynamic so that I dont have to create package for each stream/ modify the meta data mapping each time.

    You can solve a lot of different task with SSIS packages, but not really in a dynamically way.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.