<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Open Studio: how to dynamically change the server and database connection info without the commercial license? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359682#M124426</link>
    <description>&lt;P&gt;The connection info is in a configuration table in the MySQL database but I am open to store it in a file as well. Is there an example you can point me to on using tContextLoad and changing connection info? Really appreciate the response. Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 13:37:20 GMT</pubDate>
    <dc:creator>AxxessPhilips</dc:creator>
    <dc:date>2021-08-09T13:37:20Z</dc:date>
    <item>
      <title>Open Studio: how to dynamically change the server and database connection info without the commercial license?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359680#M124424</link>
      <description>&lt;P&gt;I have 500 databases to loop through and run SQL as stored procedure, I need to change the server and db for the connection before each run, is this possible in the community edition, if so how? It looked like context changing is available for connections only in the commercial license. If anyone knows please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359680#M124424</guid>
      <dc:creator>AxxessPhilips</dc:creator>
      <dc:date>2024-11-15T23:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open Studio: how to dynamically change the server and database connection info without the commercial license?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359681#M124425</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How your connection information to each database are stored?&lt;/P&gt;&lt;P&gt;To modify context values, you can use tcontextload (available in open studio version), or you can use global var to store connection information and modify them in each loop using tsetglobalvar component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359681#M124425</guid>
      <dc:creator>MS5</dc:creator>
      <dc:date>2021-08-09T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Open Studio: how to dynamically change the server and database connection info without the commercial license?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359682#M124426</link>
      <description>&lt;P&gt;The connection info is in a configuration table in the MySQL database but I am open to store it in a file as well. Is there an example you can point me to on using tContextLoad and changing connection info? Really appreciate the response. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359682#M124426</guid>
      <dc:creator>AxxessPhilips</dc:creator>
      <dc:date>2021-08-09T13:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open Studio: how to dynamically change the server and database connection info without the commercial license?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359683#M124427</link>
      <description>&lt;P&gt;Solution to chose depend on how your connection information are stored : &lt;/P&gt;&lt;P&gt;if it's key/value, the solution with tcontextLoad is better&lt;/P&gt;&lt;P&gt;if it's one record per connection, the solution with global variable is better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my side, I've made an example that take connection information with format : (soit 1 record per connection)&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HBJteAAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154287i7401CC93DC28A765/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HBJteAAH.png" alt="0695b00000HBJteAAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HBJuXAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144641iD24D82CD1775684C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HBJuXAAX.png" alt="0695b00000HBJuXAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tfileinput read the file that contain connection information&lt;/LI&gt;&lt;LI&gt;tFlowtoIterate is used to iterate on each line of the file (generate one global variable for each column read from the file)&lt;/LI&gt;&lt;LI&gt;tfixedflowinput create a record using global var generated by the component tflowtoiterate&lt;/LI&gt;&lt;LI&gt;tsplitrow to transform each column of the record to key/value (schema needed in the tcontextload)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HBJwsAAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144264iDE3BC4A2CE017FB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HBJwsAAH.png" alt="0695b00000HBJwsAAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tcontextdump and tlogrow are present only to verify that context variable are loaded correctly&lt;/P&gt;&lt;P&gt;Then context values can be used for the connection to your different database at each record read in your file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another solution : usage of global variables to store connection information. As component tFlowToIterate generate a global variable for each columns read in the file, you can directly use them to connect, instead of context variable. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HBJyZAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157721i5348754111E31377/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HBJyZAAX.png" alt="0695b00000HBJyZAAX.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HBK06AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145799iAC5AB59A02246487/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HBK06AAH.png" alt="0695b00000HBK06AAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 15:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359683#M124427</guid>
      <dc:creator>MS5</dc:creator>
      <dc:date>2021-08-09T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open Studio: how to dynamically change the server and database connection info without the commercial license?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359684#M124428</link>
      <description>&lt;P&gt;Wow, great response, amazing, let me try this out, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 16:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Open-Studio-how-to-dynamically-change-the-server-and-database/m-p/2359684#M124428</guid>
      <dc:creator>AxxessPhilips</dc:creator>
      <dc:date>2021-08-09T16:03:54Z</dc:date>
    </item>
  </channel>
</rss>

