Skip to main content
Solved

Truncate and Load to Snowflake

  • February 14, 2022
  • 5 replies
  • 822 views

poulose
Fan

Hi,

I have a requirement to do a truncate and load from SQL Server data base into Snowflake. How can we achieve this.

Regards,

Poulose

Best answer by poulose

Hi,

I achieved this by using Start Event JDBC Query Executor.

 

Thanks a lot.

Regards,

Poulose

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img
  • StreamSets Employee
  • 31 replies
  • February 14, 2022

Hi @poulose,

Could you please check whether Start Event - Snowflake will be helpful to your use-case?

Before starting the pipeline, you can truncate the table using Start Event and after that you can use the actual pipeline for loading the data.

 


poulose
Fan
  • Author
  • Fan
  • 3 replies
  • February 15, 2022

Hi Ranjith,

Thank you for the response. I forgot to mention that we are using Data Collector version 3.22.x. I believe Snowflake Executor is not available for this version. Can you please confirm if this can be achieved using JDBC Query executer? If yes, how do we configure the connection to snowflake using JDBC Query Executor.

Regards,

Poulose


poulose
Fan
  • Author
  • Fan
  • 3 replies
  • Answer
  • February 15, 2022

Hi,

I achieved this by using Start Event JDBC Query Executor.

 

Thanks a lot.

Regards,

Poulose


martin_gatto
Fan
poulose wrote:

Hi,

I achieved this by using Start Event JDBC Query Executor.

 

Thanks a lot.

Regards,

Poulose

Did the stage jdbc query with snowflake work for you? Could you share how to configure it?


poulose
Fan
  • Author
  • Fan
  • 3 replies
  • March 20, 2022

Hi Martin,

Please find the screenshots for the configurations. Let me know if this works for you

  1. Select JDBC Query under start event, by default this will be Discard(Library: Basic)
  2. Add the JDBC details and Truncate table statements
  3. Included additional JDBC Configurations
1. Change Start Event
2. JDBC Connection and Truncate tables
3.Additional JDBC Configurations

 

 


Reply