<?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 Can we join two tables from two different databases on two different servers in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250085#M94973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where we need to get data from two tables which reside in two databases on different servers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we can have only one connection active at a time, I couldnt figure out how to join those two tables. &lt;/P&gt;&lt;P&gt;I have come to know that we can use Servername.databasename.schema.tablename in the join syntax &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the tablename is something like dbo.tablename&lt;/P&gt;&lt;P&gt;So when I use the syntax as Servername.databasename.schema.dbo.tablename am getting an error like "Only 3 prefixes are allowed".&lt;/P&gt;&lt;P&gt;"dbo dot"is actually a part of tablename whereas Qlikview is interpreting it as a prefix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know whether this process is correct or not..and can we actually join two tables from two databases from two different servers?&lt;/P&gt;&lt;P&gt;Someone please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2011 13:25:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-09T13:25:38Z</dc:date>
    <item>
      <title>Can we join two tables from two different databases on two different servers in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250085#M94973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where we need to get data from two tables which reside in two databases on different servers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we can have only one connection active at a time, I couldnt figure out how to join those two tables. &lt;/P&gt;&lt;P&gt;I have come to know that we can use Servername.databasename.schema.tablename in the join syntax &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the tablename is something like dbo.tablename&lt;/P&gt;&lt;P&gt;So when I use the syntax as Servername.databasename.schema.dbo.tablename am getting an error like "Only 3 prefixes are allowed".&lt;/P&gt;&lt;P&gt;"dbo dot"is actually a part of tablename whereas Qlikview is interpreting it as a prefix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know whether this process is correct or not..and can we actually join two tables from two databases from two different servers?&lt;/P&gt;&lt;P&gt;Someone please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250085#M94973</guid>
      <dc:creator />
      <dc:date>2011-09-09T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we join two tables from two different databases on two different servers in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250086#M94974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure you can join two tables from different databases/servers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Connect ... // Connect to the first database/server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Select ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;From (table in first database); // here you will need at most schema.dbo.tablename (leave out the servername.databasename)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Connect ... // Connect to the second database/server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Left Join (Table1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Select ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;From (table in second database);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250086#M94974</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-09T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Can we join two tables from two different databases on two different servers in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250087#M94975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my understanding why not you create a DVD of the dbo connection and then join the tables after creating the qvd it is more easy and right way to use your servers file and safe also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250087#M94975</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-09T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we join two tables from two different databases on two different servers in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250088#M94976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to join tables inside QlikView you should load first table, and then load with join second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT [connection string to server1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT [connection string to server2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;JOIN (Tab1) SELECT *&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joined fields must have the same names for the example above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-join-two-tables-from-two-different-databases-on-two/m-p/250088#M94976</guid>
      <dc:creator />
      <dc:date>2011-09-09T13:47:52Z</dc:date>
    </item>
  </channel>
</rss>

