Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Programmatically map large number of output columns for database insert?

$
0
0

I'm parsing XML from each of 8 web service requests. The responses to these 8 requests return a total of 450 columns.

With a small number of columns, the logical way to insert columns into SQL Server would be to use a Script Component, defining the output columns and mapping them to an OLEDB connection or something. I simply can't imagine doing all of this work manually for 450 columns. I'm inclined to just write a C# console script to handle this job. The requirement for the job, however, is to use SSIS.

As such, what is a better approach for SSIS - if SSIS is even the right tool?

Would it be wiser to use a Script Task, executing insert statements on each record as the XML is deserialized?

Reading the MSDN documentation for connecting data flow components dynamically seems like a possible approach, but clunky, isn't it? More like programmatically trying to force the GUI to do what's desired rather than a lean parse/insert process in code.

http://msdn.microsoft.com/en-us/library/ms136086.aspx

Welcoming suggestions.

Thanks!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>