I am using a ODBC Enterprise stage to connect to a SQL server.Now the operation I would like to perform is 'Delete then Insert'. The requirement is to clear the table then insert.But somehow I am getting error while doing that.I can do 'Insert Only' and 'Delete Only' separately, but not 'Delete then Insert'.The error in Director :
APT_CombinedOperatorController,0: /bin/echo: write error: Broken pipe
APT_CombinedOperatorController,0: Operator terminated abnormally: received signal SIGSEGV
main_program: Step execution finished with status = FAILED.
Please help.
SQL Server as target
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 40
- Joined: Thu Apr 17, 2008 1:52 pm
- Location: Huntsville, AL
Change your ODBC Enterprise to a Dynamic RDBMS stage. In the Update Action drop down of the Input/General tab you can choose "Truncate table then insert rows" or you could write your own custom before SQL that will be executed before the table is loaded. Under the SQL tab there is a before section where this can be accomplished.
Hope this helps.
Josh
Hope this helps.
Josh