Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Chart

Need to run ms sql script at the end of the import process

  • Doron Farber
  • Topic Author
  • Offline
  • User
  • User
More
5 years 3 months ago - 5 years 3 months ago #3530 by Doron Farber
Hello,

Need to run ms sql script at the end of the import process. All records where imported from a spread sheet into ms sql table and in this point I need to run this code:
Code:
UPDATE Prices SET [Price] = SUBSTRING(Price,2,10),   [PriceFlag] = 'GBP'

Where is the spot to stick this code?

Thanks,

Doron
Last edit: 5 years 3 months ago by Doron Farber.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #3531 by FlowHeater-Team
Hi Doron,

You just have to use the SQL Heater and switch the “Execute when” option to “Finish” like the screenshot below.
In case you need a dynamic SQL statement with values from some fields, you can use FlowHeater Parameter as placeholder as well like this.
Code:
UPDATE Prices SET [Price] = SUBSTRING(Price,2,10),   [PriceFlag] = 'GBP' WHERE CUSTOMER = ‘$CUSTOMER_ID$’

Note: In this case you have to set the FlowHeater Parameter $CUSTOMER_ID$ with the Set Parameter Heater before using.


Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

  • Doron Farber
  • Topic Author
  • Offline
  • User
  • User
More
5 years 3 months ago #3532 by Doron Farber
Hi Robert,

So I can choose any heater of the fields? Then there are several options to choose from the heater.
Insert Clone Heater
Switch to a New Layer
Configure Layer

Did not see this option as: Execute when

This is an Excel Adapter to SqlServerAdapter.

Thanks,

Doron

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #3533 by FlowHeater-Team
Hi Doron,

Of course, you have to use the SQL Heater instead of the Clone Heater . Only the SQL Heater and a few more functions supports to run at Start or at the End (=Execute when “Finish”) during the import/export process.


Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

  • Doron Farber
  • Topic Author
  • Offline
  • User
  • User
More
5 years 3 months ago #3534 by Doron Farber
Thanks for the reply.
Do you have links with sample to all features including upload files from FTP into the database?

Regards,

Doron

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #3535 by FlowHeater-Team
Hi Doron,

To synchronize FTP files or folders you can use the CMD Heater and call for example WinSCP or filezilla with command line options during the import process.

Afterwards it would be possible to import certain files (content) with the File Heater to a SQL Server database table. If you need more assistance, please open a new support thread and add a few more details what you want to do, Thanks.

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.296 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.