Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have 1000's of sp's that are used in our current ETL processing.
These sp's range from simple get a column from a row, to huge calculations not easily/possible to be replicated in Compose's expression builder.
Some of the sp's can be converted to a 'pre-run' sp that could populate lookup tables, which seem easy to integrate.
Can Compose call a sp in a SqlServer database, not necessarily the same database of the ODS or DW...ie. if the dw is in xxxx_DW.dbo and the sp is in xxxx_SP.dbo; both databases on the same server; if so how?
Ron
You cannot call an SP in a mapping - but can as you and AJ suggest call it in
Another option would be to convert the SP into a Table-Valued function which generates an output. You should then be able to use the TVF in a mapping as a query based source.
I think you can use EXEC in post or pre etl. That should work.
Also the single table is good option if you have logic that would not be converted in views or expression. Also a good advantage of that is in cdc you will only be operating onthe delta values but as I'm not sure what the requirement is, i can't say much about the approach.
You cannot call an SP in a mapping - but can as you and AJ suggest call it in
Another option would be to convert the SP into a Table-Valued function which generates an output. You should then be able to use the TVF in a mapping as a query based source.