Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2013-04-19 : 02:36:12
|
Hi All,i have a stored procedure it will generate an result set with dynamic number of columns.we have dynamic sql's in SP the number of columns in result set will depend on some conditions inside SP.with few input values SP result set will return 10 columnswith few other input values result set will return 30 columnsPls suggest the way how can i map these columns in SSIS dynamically.Thanks.M.MURALI kRISHNA |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-04-19 : 02:43:44
|
you cant change the metadata of SSIS at runtime. One option is to keep resultset as fixed (30 columns always). in first case put NULL or some default values for the missing 20 columns as placeholders. then based on your condition apply the proper mappings to take only the available columns------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|