<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>directquery Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/directquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/directquery/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Thu, 16 Apr 2026 20:35:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>directquery Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/directquery/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Enable Power BI DirectQuery for ODBC: Solving the Live Data Problem</title>
		<link>https://zappysys.com/blog/enable-power-bi-directquery-for-odbc-solving-the-live-data-problem/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Thu, 16 Apr 2026 16:04:40 +0000</pubDate>
				<category><![CDATA[ODBC PowerPack]]></category>
		<category><![CDATA[Reporting - Microsoft Power BI]]></category>
		<category><![CDATA[directquery]]></category>
		<category><![CDATA[powerbi]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=12006</guid>

					<description><![CDATA[<p>Introduction Power BI native ODBC connectors do not support DirectQuery. This significant platform limitation forces users into Import mode, preventing real-time data access and causing refresh delays for critical business dashboards. If you have been searching for a &#8220;Power BI ODBC DirectQuery workaround&#8221; or a way to &#8220;enable DirectQuery for custom ODBC drivers,&#8221; this guide [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/enable-power-bi-directquery-for-odbc-solving-the-live-data-problem/">Enable Power BI DirectQuery for ODBC: Solving the Live Data Problem</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><strong><a href="https://zappysys.com/blog/wp-content/uploads/2018/06/power-bi-logo-310x310.png"><img decoding="async" class="alignleft wp-image-3951 " src="https://zappysys.com/blog/wp-content/uploads/2018/06/power-bi-logo-310x310.png" alt="" width="115" height="115" srcset="https://zappysys.com/blog/wp-content/uploads/2018/06/power-bi-logo-310x310.png 310w, https://zappysys.com/blog/wp-content/uploads/2018/06/power-bi-logo-310x310-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2018/06/power-bi-logo-310x310-300x300.png 300w" sizes="(max-width: 115px) 100vw, 115px" /></a>Power BI native ODBC connectors do not support DirectQuery.</strong> This significant platform limitation forces users into Import mode, preventing real-time data access and causing refresh delays for critical business dashboards. If you have been searching for a <em>&#8220;Power BI ODBC DirectQuery workaround&#8221;</em> or a way to <em>&#8220;enable DirectQuery for custom ODBC drivers,&#8221;</em> this guide provides the exact steps to bridge that gap.</p>
<div style="width: 715px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" title="Power BI ODBC data source with Import mode only and no DirectQuery option" src="/blog/wp-content/uploads/2026/04/power-bi-odbc-directquery-import-only.png" alt="Power BI ODBC data source with Import mode only and no DirectQuery option" width="705" height="278" /><p class="wp-caption-text">The Industry Challenge: Standard Power BI ODBC settings lack the DirectQuery option.</p></div>
<h2>The Problem: Why &#8220;Import Mode&#8221; Fails Modern Data Teams</h2>
<p>While the native Microsoft connector is useful for simple tasks, its lack of DirectQuery support creates several enterprise-level issues:</p>
<ul>
<li><strong>Stale Data:</strong> There is no true real-time reporting, as data is only as fresh as your last refresh.</li>
<li><strong>Memory Constraints:</strong> Large datasets quickly bloat the Power BI model and increase memory usage.</li>
<li><strong>Refresh Overhead:</strong> Frequent changes in underlying data require complex and constant refresh schedules.</li>
<li><strong>API Lag:</strong> Data from cloud apps like Jira, SharePoint, or OneDrive becomes outdated between scheduled updates.</li>
</ul>
<h2>The Solution: ZappySys DirectQuery ODBC Connector</h2>
<p>To fix this widespread industry problem, you can use the <strong>ZappySys DirectQuery ODBC Connector</strong> (a specialized custom Power BI connector). This tool allows you to treat any ODBC source as a live connection, unlocking real-time analytics for databases, APIs, and cloud apps.</p>
<h3>Advanced Capabilities:</h3>
<ul>
<li>Enable <strong>DirectQuery</strong> mode for virtually any 64-bit ODBC source.</li>
<li>Query live data directly without importing massive datasets into Power BI.</li>
<li>Seamlessly integrate with the <a href="https://zappysys.com/products/odbc-powerpack/">ZappySys ODBC PowerPack</a> for API and JSON connectivity.</li>
</ul>
<hr />
<h2>Step 1: Install the ZappySys Connector</h2>
<ol>
<li>First, download and install the <a href="https://zappysys.com/products/odbc-powerpack/download">ZappySys ODBC PowerPack</a>.<br />
This is essential for those using ZappySys drivers (e.g. REST API, JSON, JDBC Bridge (e.g. Trino, Infor, Athena) and more).</li>
<li><strong>Download the Power BI Connector file:</strong> <a href="https://zappysys.com/downloads/ZappySys-DirectQuery-ODBC-Connector.zip">ZappySys-DirectQuery-ODBC-Connector.zip</a></li>
<li>Copy the extracted <code>.mez</code> file to &lt;your-profile&gt;\Documents\Power BI Desktop\Custom Connectors: (See next section to find exact path)<br />
<pre class="crayon-plain-tag">Examples:

C:\Users\&amp;lt;YourUsername&amp;gt;\Documents\Power BI Desktop\Custom Connectors
C:\Users\&amp;lt;YourUsername&amp;gt;\OneDrive - &amp;lt;your-company&amp;gt;\Documents\Power BI Desktop\Custom Connectors</pre>
<strong><br />
Note:</strong> If the <code>Custom Connectors</code> folder does not exist, you must create it manually.For finding exact connector folder path see <a href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-connector-extensibility">Microsoft Connector Extensibility documentation</a>.</li>
</ol>
<p><strong>How to find the Custom Connector folder Path for Power BI</strong></p>
<ol>
<li>Type PowerShell on command line.</li>
<li>Run the lines below to print the base path and the full path. You can run one after another or paste both lines.<br />
<pre class="crayon-plain-tag">[Environment]::GetFolderPath('MyDocuments')
Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'Microsoft Power BI Desktop\Custom Connectors'</pre>
</li>
</ol>
<h2>Step 2: Update Power BI Security for Custom Connectors</h2>
<ol>
<li>Open Power BI Desktop.</li>
<li>Navigate to <strong>File &gt; Options and settings &gt; Options &gt; Security</strong>.</li>
<li>Under <strong>Data Extensions</strong>, enable the option <strong>&#8220;Allow any extension to load without validation&#8221;</strong>.</li>
<li>Save your changes and restart Power BI Desktop to apply the new security policy.</li>
</ol>
<div style="width: 864px" class="wp-caption alignnone"><img loading="lazy" decoding="async" title="Power BI options security settings to enable custom connectors" src="/blog/wp-content/uploads/2026/04/power-bi-enable-custom-connectors-security.png" alt="Power BI options security settings to enable custom connectors" width="854" height="398" /><p class="wp-caption-text">Power BI options security settings to enable custom connectors</p></div>
<h2>Step 3: Set Up a 64-bit ODBC DSN</h2>
<ol>
<li>Open the <strong>ODBC Data Sources (64-bit)</strong> administrator.</li>
<li>Click the <strong>System DSN</strong> tab and select <strong>Add</strong>.</li>
<li>Choose your driver (for example, the ZappySys ODBC Driver for API/Jira/SharePoint).</li>
<li>Save the DSN with a clear name, such as <code>MyZappyDSN</code>.</li>
</ol>
<p><strong>Important Architecture Note:</strong> Power BI Desktop and the Gateway require a 64-bit DSN; 32-bit DSNs are not supported for this workflow.</p>
<div style="width: 589px" class="wp-caption alignnone"><img loading="lazy" decoding="async" title="Windows 64-bit ODBC Data Source Administrator with System DSN configured" src="/blog/wp-content/uploads/2026/04/windows-odbc-64bit-system-dsn-setup.png" alt="Windows 64-bit ODBC Data Source Administrator with System DSN configured" width="579" height="24" /><p class="wp-caption-text">Windows 64-bit ODBC DSN Configuration.</p></div>
<h2>Step 4: Connecting for Live Data / DirectQuery Support</h2>
<ol>
<li>In Power BI Desktop, go to <strong>Get Data &gt; More..</strong>.</li>
<li>Search for &#8220;zappysys&#8221; in the list.</li>
<li>Select <strong>ZappySys ODBC Connector (For DirectQuery Support)</strong>.</li>
<li>Provide your DSN name (<code>MyZappyDSN</code>) or a full connection string.</li>
<li>Select <strong>DirectQuery</strong> mode and click connect.
<div id="attachment_12015" style="width: 472px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-custom-odbc-connector-with-directquery-1.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-12015" class="size-full wp-image-12015" src="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-custom-odbc-connector-with-directquery-1.png" alt="ZappySys ODBC Connector - To enable DirectQuery option for ODBC Datasource (Custom Install required)" width="462" height="293" srcset="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-custom-odbc-connector-with-directquery-1.png 462w, https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-custom-odbc-connector-with-directquery-1-300x190.png 300w" sizes="(max-width: 462px) 100vw, 462px" /></a><p id="caption-attachment-12015" class="wp-caption-text">ZappySys ODBC Connector &#8211; To enable DirectQuery option for ODBC Datasource (Custom Install required)</p></div></li>
</ol>
<p><strong>Note for PowerPack Users:</strong> You can use a full connection string (e.g., <code>Driver={ZappySys ODBC Driver};Host=...;</code>) by using the &#8220;Copy Settings&#8221; feature within the ZappySys Driver UI. Read more <a href="https://community.zappysys.com/t/how-to-copy-the-zappysys-driver-connection-string/172">how to copy full connection string</a></p>
<div style="width: 815px" class="wp-caption alignnone"><img loading="lazy" decoding="async" title="Power BI Get Data showing ZappySys DirectQuery ODBC Connector selected" src="/blog/wp-content/uploads/2026/04/power-bi-zappysys-directquery-connector-selection.png" alt="Power BI Get Data showing ZappySys DirectQuery ODBC Connector selected" width="805" height="557" /><p class="wp-caption-text">Power BI Get Data showing ZappySys DirectQuery ODBC Connector selected</p></div>
<h3>Choosing Your Selection Mode</h3>
<p>When the navigator opens, you must choose how to fetch your data:</p>
<ul>
<li><strong>Table Mode:</strong> Best for simple datasets where you want to select a table from a list.</li>
<li><strong>Query Mode (SQL):</strong> Recommended for performance. Writing a custom SQL query allows you to filter and join data at the source, which is much faster for DirectQuery.</li>
</ul>
<div class="su-note"  style="border-color:#dfdfdf;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f9f9f9;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">
<strong>Pro-Tip:</strong> To get the full connection string for ZappySys drivers, click &#8220;Copy Settings&#8221; in the Driver UI and paste it directly into Power BI.<br />
</div></div>
<h2>Step 5: Verify Your DirectQuery Connection (Final Result)</h2>
<p>Once connected, it is crucial to verify that the report is truly &#8220;Live.&#8221; A successful connection will change the behavior of Power BI Desktop.</p>
<div id="attachment_12030" style="width: 1183px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-12030" class="wp-image-12030 size-full" src="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example.png" alt="Power BI Test Dashboard showing Storage Mode: DirectQuery" width="1173" height="757" srcset="https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example.png 1173w, https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example-300x194.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example-1024x661.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/04/powerbi-real-time-directquery-odbc-dashboard-example-768x496.png 768w" sizes="(max-width: 1173px) 100vw, 1173px" /></a><p id="caption-attachment-12030" class="wp-caption-text">Power BI Test Dashboard showing Storage Mode: DirectQuery</p></div>
<div class="su-note"  style="border-color:#d0e0d7;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#eafaf1;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">
<strong>Confirmation Checklist:</strong><br />
* <strong>Storage Mode:</strong> Look at the status bar at the bottom-right; it must say <strong>Storage Mode: DirectQuery</strong>.<br />
* <strong>Data Pane:</strong> On the right side, you can see your tables, but the local &#8220;Data&#8221; icon on the far left sidebar is hidden because data is not imported.<br />
</div></div>
<h2>Step 6: Configure the Gateway for Power BI Service</h2>
<p>Once your report is ready, you must configure the gateway so Power BI Service can maintain the live DirectQuery connection to your data source. Follow the steps below to deploy and enable your custom connector for the On-premises Data Gateway.</p>
<h3>6.1 Create a Dedicated Connector Folder</h3>
<p>Do not place the connector in a user-specific folder. The gateway service account needs reliable access, so use a shared folder on a local drive instead.</p>
<ul>
<li><strong>Recommended paths:</strong> <code>C:\CustomConnectors</code> or <code>C:\ZappySysConnectors</code></li>
</ul>
<h3>6.2 Copy the Connector File</h3>
<p>Copy your custom connector file (<code>.mez</code>) into the folder you created.</p><pre class="crayon-plain-tag">C:\CustomConnectors\YourConnector.mez</pre><p>
<h3>6.3 Grant Folder Permissions to the Gateway Service</h3>
<p>If the connector does not appear in Power BI Service, first make sure the gateway service account can access the connector folder.</p>
<ol>
<li>Right-click the folder (for example, <code>C:\CustomConnectors</code>) and select <strong>Properties &gt; Security</strong>.</li>
<li>Click <strong>Edit &gt; Add</strong>.</li>
<li>Enter <code>NT SERVICE\PBIEgwService</code> and click <strong>Check Names</strong>.<br />
<strong>NOTE:</strong> If you are using a different service account, then use that instead. To verify Services account name try below steps.<br />
Press <strong>Windows Key + R</strong> &gt; open <strong>services.msc</strong> &gt; locate <strong>On-premises data gateway service</strong> &gt; look at <strong>Log On As<br />
&gt; </strong>If it says <strong>NT SERVICE\PBIEgwService</strong> then use exact same user name<br />
<strong>&gt; </strong>If it says <strong>Local System</strong> then use <strong>SYSTEM</strong> user for folder permission<br />
<strong>&gt; </strong>If it says <strong>DOMAIN\Svc-PBI-Gateway</strong> then use exact same user name</li>
<li>If Windows cannot find the account, make sure the <strong>Location</strong> is set to the local machine, not the domain.</li>
<li>Grant at least <strong>Read</strong> and <strong>List folder contents</strong> permissions.</li>
</ol>
<h3>6.4 Enable Custom Connectors in the Gateway Config File</h3>
<p>You must explicitly enable custom connectors and point the gateway to your connector folder.</p>
<ol>
<li>Open this file in Notepad as Administrator:</li>
</ol>
<pre class="crayon-plain-tag">C:\Program Files\On-premises data gateway\Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config</pre>
<ol start="2">
<li>Find the <code>&lt;appSettings&gt;</code> section and add these entries:</li>
</ol>
<pre class="crayon-plain-tag">&amp;lt;add key=&quot;EnableCustomConnectors&quot; value=&quot;true&quot; /&amp;gt;
&amp;lt;add key=&quot;CustomConnectorsPath&quot; value=&quot;C:\CustomConnectors&quot; /&amp;gt;</pre>
<ol start="3">
<li>Save the file.</li>
<li>Restart the gateway service from <strong>services.msc</strong> or from the gateway application.</li>
</ol>
<h3>6.5 Verify the Connector in Power BI Service</h3>
<p>After restarting the gateway, sign in to Power BI Service and try adding or mapping the data source. Your custom connector should now be available through the gateway.</p>
<div class="su-note"  style="border-color:#e5dacb;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#fff4e5;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">
<strong>Why this matters:</strong> Using a shared root-level folder such as <code>C:\CustomConnectors</code> and granting access to the gateway service account helps avoid common <em>Connector Not Found</em> issues when publishing to Power BI Service.<br />
</div></div>
<hr />
<h2>FAQ: Frequently Asked Questions</h2>
<h3>Does the native Microsoft ODBC connector support DirectQuery?</h3>
<p>No. The native Microsoft ODBC connector is limited to Import mode only.</p>
<h3>How can I enable DirectQuery for ODBC sources in Power BI?</h3>
<p>By using the ZappySys DirectQuery ODBC Connector and following the custom extension setup outlined in this guide.</p>
<h3>Where is the ZappySys DirectQuery connector download?</h3>
<p>You can find the latest version here: <a href="https://zappysys.com/downloads/ZappySys-DirectQuery-ODBC-Connector.zip">ZappySys DirectQuery Connector ZIP</a>.</p>
<h2>Troubleshooting Checklist</h2>
<ul>
<li><strong>Connector Missing:</strong> Ensure &#8220;Allow any extension&#8221; is checked in Power BI security settings.</li>
<li><strong>Gateway Errors:</strong> Verify the DSN name is identical on both the local PC and the gateway server.</li>
<li><strong>32-bit vs 64-bit:</strong> Ensure you are using a 64-bit System DSN; 32-bit will cause connection failures.</li>
<li><strong>Driver Installation:</strong> Ensure the ZappySys ODBC driver is installed on all machines where the report or gateway runs.</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/enable-power-bi-directquery-for-odbc-solving-the-live-data-problem/">Enable Power BI DirectQuery for ODBC: Solving the Live Data Problem</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
