<?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 ODBC Connect without DSN. Can this be done? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250125#M395764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to connect via ODBC without using an externally defined DSN? I an using Oracle and have a TNSnames entry set up. I know this can be easily done in .NET and other products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My system reports the oracle driver as &lt;SPAN style="font-size: 13.3333px;"&gt;{Oracle in OraClient11g_home2}&lt;/SPAN&gt; which I assume could vary from server to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [DRIVER={Oracle in OraClient11g_home2};DBQ=TheTNSName] (XUserId is THEUSERNAMEHASH, XPassword is THEPASSWORDHASH);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: IM010, ErrorCode: 0, ErrorMsg: [Microsoft][ODBC Driver Manager] Data source name too long&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [TheExternalDSNName;DBQ=&lt;SPAN style="font-size: 13.3333px;"&gt;TheTNSName&lt;/SPAN&gt;] (XUserId is &lt;SPAN style="font-size: 13.3333px;"&gt;THEUSERNAMEHASH&lt;/SPAN&gt;, XPassword is &lt;SPAN style="font-size: 13.3333px;"&gt;THEUSERNAMEHASH&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine. But, "&lt;SPAN style="font-size: 13.3333px;"&gt;TheExternalDSNName&lt;/SPAN&gt;" is the name of an externally defined DSN entry on the machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this? We really don't want to have to manage external DSN entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2017 20:44:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-22T20:44:23Z</dc:date>
    <item>
      <title>ODBC Connect without DSN. Can this be done?</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250125#M395764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to connect via ODBC without using an externally defined DSN? I an using Oracle and have a TNSnames entry set up. I know this can be easily done in .NET and other products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My system reports the oracle driver as &lt;SPAN style="font-size: 13.3333px;"&gt;{Oracle in OraClient11g_home2}&lt;/SPAN&gt; which I assume could vary from server to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [DRIVER={Oracle in OraClient11g_home2};DBQ=TheTNSName] (XUserId is THEUSERNAMEHASH, XPassword is THEPASSWORDHASH);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: IM010, ErrorCode: 0, ErrorMsg: [Microsoft][ODBC Driver Manager] Data source name too long&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [TheExternalDSNName;DBQ=&lt;SPAN style="font-size: 13.3333px;"&gt;TheTNSName&lt;/SPAN&gt;] (XUserId is &lt;SPAN style="font-size: 13.3333px;"&gt;THEUSERNAMEHASH&lt;/SPAN&gt;, XPassword is &lt;SPAN style="font-size: 13.3333px;"&gt;THEUSERNAMEHASH&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine. But, "&lt;SPAN style="font-size: 13.3333px;"&gt;TheExternalDSNName&lt;/SPAN&gt;" is the name of an externally defined DSN entry on the machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this? We really don't want to have to manage external DSN entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250125#M395764</guid>
      <dc:creator />
      <dc:date>2017-02-22T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connect without DSN. Can this be done?</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250126#M395765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The QlikView Connectors Database (formerly ODBC Connector Pack) is something that supports DSN-less connections, mind you that not all of them are necessarly the latest drivers - the Oracle one support &lt;SPAN style="font-size: 13.3333px;"&gt;12C and 11&lt;/SPAN&gt;.2 so you should be good to go. They have to be downloaded as a pack and installed after you log onto qlik.com as partner or customer and download the installation pack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154164" alt="2017-02-22 22_35_00-QlikView Connectors ‒ Qlik Connectors.png" class="jive-image image-1" src="/legacyfs/online/154164_2017-02-22 22_35_00-QlikView Connectors ‒ Qlik Connectors.png" style="height: 240px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154165" alt="2017-02-22 22_39_06-Database Connectors 1.2 ‒ Qlik Connectors.png" class="jive-image image-2" src="/legacyfs/online/154165_2017-02-22 22_39_06-Database Connectors 1.2 ‒ Qlik Connectors.png" style="height: 395px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154166" alt="2017-02-22 22_43_00-Software Download _ Qlik.com.png" class="jive-image image-3" src="/legacyfs/online/154166_2017-02-22 22_43_00-Software Download _ Qlik.com.png" style="height: 465px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notice that after installation you will have to select the QVOdbcConnectorPackage.exe in the Database drop-down list:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-22 22_50_16-QlikView x64 - [C__Users_psd_Downloads_Oracle Connection Test.qvw].png" class="image-4 jive-image" src="/legacyfs/online/154168_2017-02-22 22_50_16-QlikView x64 - [C__Users_psd_Downloads_Oracle Connection Test.qvw].png" style="height: 254px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250126#M395765</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-22T21:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connect without DSN. Can this be done?</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250127#M395766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter. I will try this out. Will this let me call an Oracle stored procedure, or must I still use a function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see this post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1217749"&gt;Calling Oracle Stored Procedure in Load Script Does Not Return Data&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250127#M395766</guid>
      <dc:creator />
      <dc:date>2017-02-23T16:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connect without DSN. Can this be done?</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250128#M395767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really a new question - and I am not sure. I am not an Oracle expert. If you're trying to extract data row sets is what the stored procedure should return. Try to post a new question with the right title to draw attention... Thanks. Please mark this thread as answered. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 20:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250128#M395767</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-25T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connect without DSN. Can this be done?</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250129#M395768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were able to create a DSN-less connection with the QlikView Oracle connector, however, calling the function fails and doesn't return any fields. The solution was to drop back to the ODBC connector. That does allow us to call a function. We can't call the stored procedures directly, but if we use a function to call it then it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if we have a stored procedure X that takes parameters A and B, and returns a SYSREFCURSOR&lt;/P&gt;&lt;P&gt;Then we can create function Y that takes the same parameters and returns a SYSREFCURSOR. Function Y calls stored procedure X and simply passes back the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax we have to use in the LOAD statement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD1 as [Something],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD2 as [Something Else]&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * FROM { ? = call Y( $(Var1), $(Var2) ) };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Var1 and Va2 would be the values that we're passing in for parameters A and B. You might need single quotes depending upon your variable types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 and FIELD2 would be names of some of the columns in the result set that is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is reliable and performs well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 03:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connect-without-DSN-Can-this-be-done/m-p/1250129#M395768</guid>
      <dc:creator />
      <dc:date>2017-05-24T03:39:25Z</dc:date>
    </item>
  </channel>
</rss>

