- Posts: 8
- Thank you received: 0
Conditional table truncate
10 years 9 months ago #5915
by Sergio
Conditional table truncate was created by Sergio
Hello
We have the situation where the AETL mapping should only truncate the target table if there are any rows coming from Datareader source at all. That is, lets say if 0 rows are coming out of Data Reader then it should not truncate target table.
I am using SQL before option
Serg
We have the situation where the AETL mapping should only truncate the target table if there are any rows coming from Datareader source at all. That is, lets say if 0 rows are coming out of Data Reader then it should not truncate target table.
I am using SQL before option
Serg
Please Log in or Create an account to join the conversation.
10 years 9 months ago #5916
by admin
Mike
ETL Architect
Replied by admin on topic Re: Conditional table truncate
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
10 years 9 months ago #5917
by Sergio
Replied by Sergio on topic Re: Conditional table truncate
AETL Standard
Serg
Serg
Please Log in or Create an account to join the conversation.
10 years 9 months ago #5923
by admin
Mike
ETL Architect
Replied by admin on topic Re: Conditional table truncate
Serg
For this you would need professional or enterprise version
Than you can write sql scrips to count number of records and if it is more than zero truncate it
See the picture attached
John
For this you would need professional or enterprise version
Than you can write sql scrips to count number of records and if it is more than zero truncate it
See the picture attached
John
Mike
ETL Architect
Please Log in or Create an account to join the conversation.