Pivot component in SSIS (SQL Server Integration Services)

Pivot component is Data Flow component available under Transformation of SSIS(SQL Server Integration Services). Configuring it improperly may cause difficulties in working with component. We at Mumbai MSBI training give enough learning and practice for many such SSIS component.


The error occurred during the pivoting process of the records. The records in the SQL are as follows,


Here we can see that the records are not sorted and also it is not properly grouped.

Therefore the error has caused on Pivot component,



The error says that the value violated the integrity constraints of the column and here constraints means that the values in the columns are not sorted.


The solution is to add a new component named “Sort” and in this component define on which column field we have to do sorting.


Connect output of “OLE DB Source” component as input to “Sort” component and then connect output of “Sort” component as input to “Pivot” component.


Now again re-configure the Pivot component by double clicking the component and opening its Editor window


Once Editor is open check mark on field “Month” in Available Input Columns and select “Sort Type” as “ascending”.


After configuring the component run the package by clicking on “Start” option available under Menu bar.


The result is shown here after adding and configuring the Sort Component.


Explaining each steps and getting practical’s done from the candidate is key benefit of attending MSBI training. With this tradition established among the candidates will help them to remember the topic learned.



This entry was posted in MSBI Training in Mumbai and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *