<?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 SQL Query From Different Databases in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236595#M87760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I know all the standard ways to do it, which were the ones I wanted to avoid. So I guess the simple answer is No, you can't run a single query against multiple data sources at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2009 22:53:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-10T22:53:47Z</dc:date>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236590#M87755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a single SQL query that pulls data in from two different servers/databases rather than doing individual queries and joining or concatenating the results. Is this possible? I don't see how to have two different connectionsactive in the script at the same time.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;SQL Select tableA.*, tableB.*&lt;/P&gt;&lt;P&gt;from Server1.MyDatabase.tableA as tableA, Server2.MyDatabase.tableB as tableB&lt;/P&gt;&lt;P&gt;where tableA.Key = tableB.Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 05:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236590#M87755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-10T05:41:53Z</dc:date>
    </item>
    <item>
      <title>AW:SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236591#M87756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have only one connection on the same time. You can load the first table into the memory,switch the connection,load the second table and combinate with the first. Maybe drop the first finaly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236591#M87756</guid>
      <dc:creator />
      <dc:date>2009-11-10T11:15:33Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236592#M87757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stepping out from QV.&lt;/P&gt;&lt;P&gt;If you are reading data from SQL server then you can use the Linked server technology.&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms188279.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms188279.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 15:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236592#M87757</guid>
      <dc:creator />
      <dc:date>2009-11-10T15:27:34Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236593#M87758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest is to make a loop with a change of connection between each SQL Statement&lt;/P&gt;&lt;P&gt;For I=1 to 2&lt;/P&gt;&lt;P&gt;IF I= 1 THEN Connect xxxxxxxxx END IF&lt;/P&gt;&lt;P&gt;IF I=2 THEN Connect xxxxxxx END IF&lt;/P&gt;&lt;P&gt;SQL_TABLE:&lt;/P&gt;&lt;P&gt;SQL Select tableA.*, tableB.*&lt;/P&gt;&lt;P&gt;from Server1.MyDatabase.tableA as tableA, Server2.MyDatabase.tableB as tableB&lt;/P&gt;&lt;P&gt;where tableA.Key = tableB.Key&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;Something like that...&lt;/P&gt;&lt;P&gt;Or you copy twice the SQL Statement with a connect between each of them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT TO xxxxxx&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;SQL xxxxxxx&lt;/P&gt;&lt;P&gt;CONNECT TO yyyyy&lt;/P&gt;&lt;P&gt;Mytable:&lt;/P&gt;&lt;P&gt;SQL xxxxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As SQL are equals, everything will be in the same table.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 15:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236593#M87758</guid>
      <dc:creator />
      <dc:date>2009-11-10T15:56:48Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236594#M87759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other Simple Method: by&lt;/P&gt;&lt;P&gt;You can load resident 2 table and take it join in Edit script 's Qlikview&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Connect to Server1.MyDatabase&lt;/P&gt;&lt;P&gt;tblTableA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SQL select tableA.*&lt;/P&gt;&lt;P&gt;From Server1.MyDatabase.tableA as tableA&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Connect to Server1.MyDatabase&lt;/P&gt;&lt;P&gt;tblTableB:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SQL select tableB.*&lt;/P&gt;&lt;P&gt;From Server2.MyDatabase.tableB as tableB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 16:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236594#M87759</guid>
      <dc:creator>thanomjit</dc:creator>
      <dc:date>2009-11-10T16:01:51Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236595#M87760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I know all the standard ways to do it, which were the ones I wanted to avoid. So I guess the simple answer is No, you can't run a single query against multiple data sources at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 22:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236595#M87760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-10T22:53:47Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236596#M87761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just being curious here. Why do you want to avoid the standard ways? Any specific benefits?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/F&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 23:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236596#M87761</guid>
      <dc:creator />
      <dc:date>2009-11-10T23:02:07Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236597#M87762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was from one of our DBAs. He lives in the MS SQL Server Stored Procedure world and was looking to leverage his SQL writing skills more than conform to QlikView scripting. LOL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 00:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236597#M87762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T00:12:28Z</dc:date>
    </item>
    <item>
      <title>SQL Query From Different Databases</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236598#M87763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hehe. LOL.&lt;/P&gt;&lt;P&gt;I was investigating different scenarios in my head why it would be a good idea but never thought of the most obvious one: because the developer wants to... &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 21:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-From-Different-Databases/m-p/236598#M87763</guid>
      <dc:creator />
      <dc:date>2009-11-12T21:23:30Z</dc:date>
    </item>
  </channel>
</rss>

