You folks have always been great in responding with quick and accurate info. Here's what I think is a fairly simple problem but I'm have trouble figuring out the answer:
I want to execute SQL Server stored procedures within a Job that will drop an index before a target table is loaded and then recreate the index after the target table is loaded. The stored procedures have been sucessfully tested in SQL Server and imported into the Datastage project.
I am trying to use the Stored Procedure stage but can't seem to configure it properly. Is this the proper stage to use and how do I configure
Any help would be appreciated.
Mike
Execute SQL Server Stored Procedure to Drop Index
Moderators: chulett, rschirm, roy
Execute SQL Server Stored Procedure to Drop Index
Mike Sherman
Senior Consultant
Creative Computing, Inc.
Senior Consultant
Creative Computing, Inc.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Open command to drop indexes, Close command to re-create indexes. Open command in either stage, Close command in target stage: I'd put them both in the target stage.
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.
Excellent Ray!
The only reason I was confused is that the Information description for the Close Command in the stage is as follows:
SQL statement to be executed before insert array is processed. This statement is executed only once on the conductor node.
This certainly seems counter-intuitive to me.
Anyway, I'm good to go. Thanks a lot!
Mike
The only reason I was confused is that the Information description for the Close Command in the stage is as follows:
SQL statement to be executed before insert array is processed. This statement is executed only once on the conductor node.
This certainly seems counter-intuitive to me.
Anyway, I'm good to go. Thanks a lot!
Mike
Mike Sherman
Senior Consultant
Creative Computing, Inc.
Senior Consultant
Creative Computing, Inc.
That would be a documentation bug, it would seem. Basically, the 'open' command is processed when the stage is 'opened' before any rows are processed, while the 'close' command is executed after all rows have been processed and just before the stage itself is closed.
Similar to the 'Before SQL' and 'After SQL' options other stages have.
Similar to the 'Before SQL' and 'After SQL' options other stages have.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers