SSIS - Sub query getting an error

0

I have the below script in the Source Editor in a SSIS package and I get an error. I change to a Select * and it works. I'm not sure why this is not working. It works in P/SQL. Any help would be appreciated!

This works in my package:

select * from Test

This does not work in my package (but works in PL/SQL) and I get the below error.

 select * from (select id, color, shape,
dense_Rank () Over (Partition By id order by id desc as SeqRank)
    ) x

Error: 0xC0202009 at Data Flow Task, OLE DB Source [111]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.

plsql
ssis-2008
asked on Stack Overflow May 9, 2016 by Mr John • edited May 11, 2016 by BIDeveloper

1 Answer

0

Best approach for this questions is instead of creating a subquery one could create a CTE. A CTE is compatiable with SSIS.

answered on Stack Overflow May 9, 2016 by Mr John

User contributions licensed under CC BY-SA 3.0