Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
thomas_2583
Contributor III
Contributor III

Truncate Table then Insert

Hi,

I have the following process flow of which I need to tweak slightly if possible.

TDBInput ---> TMap ---> TDBOuput (Update and Insert).

Is there anyway that I can include somewhere within this job design to clear down (truncate) the table that is used within the

TDBOuput , and then insert the same table with the latest data?

Labels (3)
1 Solution

Accepted Solutions
gjeremy1617088143

Hi @Steven Littlewood​ , on the tDBOutput you have a field named action on table, you can select truncate table in.

It will truncate the table before insert.

View solution in original post

3 Replies
gjeremy1617088143

Hi @Steven Littlewood​ , on the tDBOutput you have a field named action on table, you can select truncate table in.

It will truncate the table before insert.

thomas_2583
Contributor III
Contributor III
Author

Hi @guenneguez jeremy​ That's brilliant, thank you for your help!

Jwoodberry
Contributor
Contributor

Does anyone know what i'm doing wrong here, I have a webpage that gets currency data from a remote source, I get the data and insert it into sql database via a stored procedure. If i put truncate in front of the insert statement, it truncates the table and inserts the last record. If i remove the truncate, it inserts all the records. MyAccountAccess Credit Card