Bug - Embedded Script

More
10 months 3 weeks ago - 10 months 3 weeks ago #25556 by prashant
Hi,
Please see below

www.loom.com/share/b3a2d7174f8d46fd94e71...03-8565-dfc2d071dfaf

Upon further investigation , SQL Record to Variable fails , SQL to variable works fine
Last edit: 10 months 3 weeks ago by prashant.
The following user(s) said Thank You: Peter.Jonson

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

More
10 months 2 weeks ago - 10 months 2 weeks ago #25561 by Peter.Jonson
Replied by Peter.Jonson on topic Bug - Embedded Script
Working with "SQL Record to Variables" and "SQL to Variables" actions can be confusing.

I have updated the documentation to make it easier to understand

www.etl-tools.com/wiki/advanced-etl-proc...to-variables-action/

www.etl-tools.com/wiki/advanced-etl-proc...to-variables-action/

 

Peter Jonson
ETL Developer
Last edit: 10 months 2 weeks ago by Peter.Jonson.

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

More
10 months 2 weeks ago #25563 by prashant
Replied by prashant on topic Bug - Embedded Script
Can you give an example of , where this would be useful?

Sql To Variables Dynamic Action

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

More
10 months 2 weeks ago #25564 by Peter.Jonson
Replied by Peter.Jonson on topic Bug - Embedded Script
I am confused about your question.

Did you look at the both of the links?

Peter Jonson
ETL Developer

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

More
10 months 2 weeks ago #25565 by prashant
Replied by prashant on topic Bug - Embedded Script
I did , 
I am unable to think of scenario (but I am not a database admin) , where Sql To Variables Dynamic Action will be useful , hence the question to you , if I can get an example
The following user(s) said Thank You: Peter.Jonson

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

More
10 months 2 weeks ago #25566 by Peter.Jonson
Replied by Peter.Jonson on topic Bug - Embedded Script
Here it is

The Sql To Variables Action loads variable values from a SQL or Database table record set, using the first field for variable names and the second field for variable values, while ignoring any additional fields.

Table creation script:
CREATE TABLE [dbo].[variable_values](
    [variable_name] [varchar](50) NULL,
    [variable_value] [varchar](50) NULL)
GO

Data sample



 

Peter Jonson
ETL Developer

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

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save