Can I execute a standalone SQL statement in an ODBC stage without having to attach a dummy transform stage?
Or is the preferred (and only) approach to utilize a Stored Procedure stage?
Executing standalone SQL statement
Moderators: chulett, rschirm, roy
Re: Executing standalone SQL statement
I dont think that's possible. You need to have a output link from the ODBC stage to execute the SQL
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It's not possible. Passive stages, like the ODBC stage, only expose methods for performing tasks. Active stages, like Transformer stages, generate processes that actually invoke those methods.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Separate jobs. To truncate a table, generate just one row (to trigger the operation) and use user-defined SQL. Or, if the stage type permits, choose "truncate table then insert rows" as the load method, so that you don't need to re-invent the wheel.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.