<?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: Best way to load data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056705#M930707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you prefix the table with the db maybe it works, that's the reason I asked to try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db.dbo.tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db..tablename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Mar 2016 10:20:49 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-03-12T10:20:49Z</dc:date>
    <item>
      <title>Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056698#M930700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two databases in sqlserver that have same tables with same column names and structure. One of them has data prior 90 days from today and the other has data from last 90 days. I have a sql query that runs against both databases to fetch data for a report for the past 2 years and it performs an inner join and both the tables have millions of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a single OLEDB connection I wont be able to run that query in Qlikview if i need to generate a report for the past 2 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out what is best way to run the query from performance perspective?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056698#M930700</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056699#M930701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; I have a sql query that runs against both databases to fetch data for a report for the past 2 years and it performs an inner join and both the tables have millions of rows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;could you post the query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 19:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056699#M930701</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-11T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056700#M930702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a.AccountNumber,COUNT(distinct(rp.impid)) &lt;/P&gt;&lt;P&gt;from DB1..accounts a inner join DB1..accountbooks at on a.accountid=at.accountid inner DB1.dbo.reportident rp&lt;/P&gt;&lt;P&gt;on rp.ntid = AT.ntid &lt;/P&gt;&lt;P&gt;where accountdate between @date1 and @date2&amp;nbsp; &lt;/P&gt;&lt;P&gt;and rp.impid not in (select impid from DB2.dbo.TextPpl where jobid = &lt;/P&gt;&lt;P&gt;(select textid from DB1..Alljobs where jobid = rp.jobid) &lt;/P&gt;&lt;P&gt;union select personid from DB3.dbo.TextPpl where jobid = (select jobid from DB1..Alljobs where jobid = rp.jobid))&lt;/P&gt;&lt;P&gt;and rp.impid in (select personid from DB2.dbo.CallPpl where jobid = &lt;/P&gt;&lt;P&gt;(select jobid from DB1..Alljobs where jobid = rp.jobid) union select pid from DB3.dbo.CallPpl where jobid = &lt;/P&gt;&lt;P&gt;(select jobid from DB1..Alljobs where jobid = rp.jobid))&lt;/P&gt;&lt;P&gt;and rp.impid in (select impid from DB1..impident where datedat&amp;gt;@date1 )&lt;/P&gt;&lt;P&gt;group by a.accoutnumber order by a.accountnumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB2 and DB3 has same callppl table. But I think 3 OLEDB connections DB1,DB2 and DB3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 21:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056700#M930702</guid>
      <dc:creator />
      <dc:date>2016-03-11T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056701#M930703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why 3 oledb connection if the database are all on the same sqlserver?&lt;/P&gt;&lt;P&gt;Did you try with 1 oledb conn and the query you posted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056701#M930703</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-11T23:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056702#M930704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌when I create an oledb connection it asks for database name. can the connection&amp;nbsp; be changed to entire instance instead of single database &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 00:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056702#M930704</guid>
      <dc:creator />
      <dc:date>2016-03-12T00:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056703#M930705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't tell you the best approach from a QV point of view, but ...&lt;/P&gt;&lt;P&gt;if all databases are on the same server, then you can simply create a union view on one of the DBs.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Then connect to this view from QV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;use DB1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;create view dbo.[myQVSource]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; F1,F2,F3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; DB1.dbo&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt; font-family: Consolas;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;[myTable]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;union&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt; font-family: Consolas;"&gt;all&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; F1,F2,F3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; DB2.dbo&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt; font-family: Consolas;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;[myTable]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 09:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056703#M930705</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2016-03-12T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056704#M930706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of wanting to solve this in your source system (your database), do this in Qlik.&lt;/P&gt;&lt;P&gt;Just get all the tables into Qlik, do your joining and concatenating there.&lt;/P&gt;&lt;P&gt;This probably also reduces the amount of work your source system has to do, so it can keep those resources for doing what you got it for in the first place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 09:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056704#M930706</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-12T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056705#M930707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you prefix the table with the db maybe it works, that's the reason I asked to try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db.dbo.tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db..tablename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056705#M930707</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-12T10:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056706#M930708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using the database name.schema name.table name and it wont create the connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 11:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056706#M930708</guid>
      <dc:creator />
      <dc:date>2016-03-14T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056707#M930709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter on which DB your connection is. That is the IMPLICIT database, which means it will be used if you don't provide a DB in your SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as long as you specify the DB in your SQL, use a single copnnection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a.* FROM &lt;STRONG&gt;DB1&lt;/STRONG&gt;.dbo.Table1 as a&lt;/P&gt;&lt;P&gt;INNER JOIN &lt;STRONG&gt;DB2.&lt;/STRONG&gt;dbo.Table2 as b&lt;/P&gt;&lt;P&gt;ON a.ID = b.ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 14:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056707#M930709</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-03-14T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to load data</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056708#M930710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give us a better picture of what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working in Sql Server Management Studio ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give us the exact code you are trying.&lt;/P&gt;&lt;P&gt;Give us the exact error messages you are receiving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen shots if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-load-data/m-p/1056708#M930710</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2016-03-16T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

