Hi @Naomi Nosonovsky,
SSIS caches metadata when you first configure the OLE DB Source. If the column order in WITH RESULT SETS differs from what SSIS expects (or if you edited the query later), SSIS may misalign columns in preview and downstream components.
workaround
- Open the OLE DB Source Editor.
Click Preview — this confirms the query runs correctly.
Click OK to close the editor. Now right-click the OLE DB Source in the Data Flow and choose Advanced Editor.
Go to the Input and Output Properties tab.
Under OLE DB Source Output → Output Columns, manually reorder the columns to match the order in your WITH RESULT SETS clause.
- You can rename or adjust the column order here without affecting the underlying query.
- not to change data types unless necessary.
Thanks.
Lakshmi.