<?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 Production &amp; development in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187045#M1281541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Normal 0 false false false MicrosoftInternetExplorer4 &lt;P&gt;Thank you for your response Vlad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware of any method to encode different connect statements to variables or something similar to allow me to switch between data sources on different servers by changing the variable value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to have replicated production and development data environment and i want to do something like change the value of a variable to decide which server is used as the source for the reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 09:10:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-13T09:10:37Z</dc:date>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187043#M1281536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if it is possible to set a database connection as a variable to allow the switching of data sources? something like my example below but works&lt;/P&gt;&lt;P&gt;SET v&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;  &lt;w:View&gt;Normal&lt;/w:View&gt;  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;  &lt;w:PunctuationKerning&gt;&lt;/w:PunctuationKerning&gt;  &lt;w:ValidateAgainstSchemas&gt;&lt;/w:ValidateAgainstSchemas&gt;  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;  &lt;w:Compatibility&gt;   &lt;w:BreakWrappedTables&gt;&lt;/w:BreakWrappedTables&gt;   &lt;w:SnapToGridInCell&gt;&lt;/w:SnapToGridInCell&gt;   &lt;w:WrapTextWithPunct&gt;&lt;/w:WrapTextWithPunct&gt;   &lt;w:UseAsianBreakRules&gt;&lt;/w:UseAsianBreakRules&gt;   &lt;w:DontGrowAutofit&gt;&lt;/w:DontGrowAutofit&gt;  &lt;/w:Compatibility&gt;  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt; &lt;/w:WordDocument&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt; &lt;/w:LatentStyles&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;&lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}&lt;/style&gt;&lt;![endif]--&gt;Connection = 1;&lt;BR /&gt;&lt;BR /&gt;IF vConnection = 1 THEN&lt;BR /&gt;//Dev&lt;/P&gt;&lt;P&gt;SET vDBName = 'CONNECT TO [Provider=SQLOLEDB.1;Integrated Security.............................&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;//Prod&lt;/P&gt;&lt;P&gt;SET vDBName = 'CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=............................&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM $(vDBName).dbo.Table1;&lt;/P&gt;&lt;P&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;  &lt;w:View&gt;Normal&lt;/w:View&gt;  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;  &lt;w:PunctuationKerning&gt;&lt;/w:PunctuationKerning&gt;  &lt;w:ValidateAgainstSchemas&gt;&lt;/w:ValidateAgainstSchemas&gt;  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;  &lt;w:Compatibility&gt;   &lt;w:BreakWrappedTables&gt;&lt;/w:BreakWrappedTables&gt;   &lt;w:SnapToGridInCell&gt;&lt;/w:SnapToGridInCell&gt;   &lt;w:WrapTextWithPunct&gt;&lt;/w:WrapTextWithPunct&gt;   &lt;w:UseAsianBreakRules&gt;&lt;/w:UseAsianBreakRules&gt;   &lt;w:DontGrowAutofit&gt;&lt;/w:DontGrowAutofit&gt;  &lt;/w:Compatibility&gt;  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt; &lt;/w:WordDocument&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt; &lt;/w:LatentStyles&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;&lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}&lt;/style&gt;&lt;![endif]--&gt;This seems like something people would of cracked a long time ago but I can't find much on the subject any ideas?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187043#M1281536</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187044#M1281538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do that I believe. I think the problem with you syntax is the Connect statement. A Connect statement just goes once in the beginning of the script to connect to the DB Server. You can encode the DB name itself in a variable and use variable expansion to get it. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;ODBC CONNECT TO [Provider=SQLOLEDB.1] //etc&lt;BR /&gt;SET vDBName = myDatabase;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM $(vDBName).dbo.Table1;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 21:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187044#M1281538</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-04-12T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187045#M1281541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Normal 0 false false false MicrosoftInternetExplorer4 &lt;P&gt;Thank you for your response Vlad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware of any method to encode different connect statements to variables or something similar to allow me to switch between data sources on different servers by changing the variable value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to have replicated production and development data environment and i want to do something like change the value of a variable to decide which server is used as the source for the reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 09:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187045#M1281541</guid>
      <dc:creator />
      <dc:date>2011-04-13T09:10:37Z</dc:date>
    </item>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187046#M1281547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can store the connection strings in an external file and use them like this:&lt;/P&gt;&lt;P&gt;Connections:&lt;BR /&gt;LOAD ConnectionNumber,&lt;BR /&gt; ConnectionName,&lt;BR /&gt; ConnectionString&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Let vConnection = Peek('ConnectionString',vConnectionNumber);&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO $(vConnection);&lt;/P&gt;&lt;P&gt;Just create a variable called vConnectionNumber and assign it value of 0 - could then change this via Input Box etc. and even think of a clever way to link the connection number from the Connections table to the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 11:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187046#M1281547</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-13T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187047#M1281551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normal 0 false false false MicrosoftInternetExplorer4&lt;/P&gt;&lt;P&gt;Thanks Nathan that's a really good idea, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187047#M1281551</guid>
      <dc:creator />
      <dc:date>2011-04-13T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Production &amp; development</title>
      <link>https://community.qlik.com/t5/QlikView/Production-development/m-p/187048#M1281554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem.&lt;/P&gt;&lt;P&gt;BTW - love the fact you are using IE4 &lt;IMG alt="Geeked" src="http://community.qlik.com/emoticons/emotion-15.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 11:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Production-development/m-p/187048#M1281554</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-13T11:44:48Z</dc:date>
    </item>
  </channel>
</rss>

