<?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 Problems while trying to execute a SQL procedure to store data from Sense directly into a MS SQL DB in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1803100#M8889</link>
    <description>&lt;P&gt;Hi Qlik community,&lt;/P&gt;&lt;P&gt;I´ve found some posts regarding the possibility to write data directly from Sense into a SQL DB and tried to set it up.&lt;BR /&gt;&lt;BR /&gt;The DB admin has created a SQL procedure. When I´m trying to write the data to the DB&amp;nbsp; the following error occurs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;By using a ODBC connection:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Connector reply error: SQL##f - SqlState: 37000, ErrorCode: 102, ErrorMsg: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near '202104'.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS](202104,'QLIKSENSE',xxx)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;STRONG&gt;&lt;U&gt;By using a SQL connection:&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;ERROR [42000] Incorrect syntax near '202104'.,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('202104','QLIKSENSE','xxx')&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;This is the part of the script, which should write directly into the SQL DB:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIKSENSE','$(var1)');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIKVIEW','$(var2)');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIK_MIXED','$(var3)');&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;When I try to write back with a Select statement (based on a post I`ve found) the following error occurs&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;ERROR [HY000] Cannot find either column "dbo" or the user-defined function or aggregate "dbo.QLIKSENSEUSERS", or the name is ambiguous.,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SELECT [dbo].[QLIKSENSEUSERS]('202104','QLIKSENSE','xxx')&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;I did some research but unfortunatelly without any success.&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;So I have the following questions:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;What kind of connection do I need to the MS SQL Server, in order to able to execute procedures?&lt;/LI&gt;&lt;LI&gt;Did I miss someting in my script?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Do you have any hints/tips oder ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Best&lt;BR /&gt;Tino&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:09:00 GMT</pubDate>
    <dc:creator>Tino</dc:creator>
    <dc:date>2021-12-10T21:09:00Z</dc:date>
    <item>
      <title>Problems while trying to execute a SQL procedure to store data from Sense directly into a MS SQL DB</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1803100#M8889</link>
      <description>&lt;P&gt;Hi Qlik community,&lt;/P&gt;&lt;P&gt;I´ve found some posts regarding the possibility to write data directly from Sense into a SQL DB and tried to set it up.&lt;BR /&gt;&lt;BR /&gt;The DB admin has created a SQL procedure. When I´m trying to write the data to the DB&amp;nbsp; the following error occurs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;By using a ODBC connection:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Connector reply error: SQL##f - SqlState: 37000, ErrorCode: 102, ErrorMsg: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near '202104'.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS](202104,'QLIKSENSE',xxx)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;STRONG&gt;&lt;U&gt;By using a SQL connection:&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;ERROR [42000] Incorrect syntax near '202104'.,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('202104','QLIKSENSE','xxx')&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;This is the part of the script, which should write directly into the SQL DB:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIKSENSE','$(var1)');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIKVIEW','$(var2)');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [dbo].[QLIKSENSEUSERS]('$(vT_CalMonth)','QLIK_MIXED','$(var3)');&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;When I try to write back with a Select statement (based on a post I`ve found) the following error occurs&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;ERROR [HY000] Cannot find either column "dbo" or the user-defined function or aggregate "dbo.QLIKSENSEUSERS", or the name is ambiguous.,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;FONT face="courier new,courier"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;FONT face="courier new,courier"&gt;SELECT [dbo].[QLIKSENSEUSERS]('202104','QLIKSENSE','xxx')&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;I did some research but unfortunatelly without any success.&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;So I have the following questions:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;What kind of connection do I need to the MS SQL Server, in order to able to execute procedures?&lt;/LI&gt;&lt;LI&gt;Did I miss someting in my script?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Do you have any hints/tips oder ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Best&lt;BR /&gt;Tino&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1803100#M8889</guid>
      <dc:creator>Tino</dc:creator>
      <dc:date>2021-12-10T21:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while trying to execute a SQL procedure to store data from Sense directly into a MS SQL DB</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1804724#M8934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've found a post with a similar subject (on Qlikview, but as you know the script logic is the same). I hope it'll be helpful for you :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Executing-a-stored-procedure/td-p/342032" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Executing-a-stored-procedure/td-p/342032&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;S.B&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1804724#M8934</guid>
      <dc:creator>Seyko</dc:creator>
      <dc:date>2021-05-03T19:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while trying to execute a SQL procedure to store data from Sense directly into a MS SQL DB</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1805023#M8954</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi all,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I´ve figured out how it works and want to share it with you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Preconditions:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;ODBC connection is needed&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Execute rights are needed on the SQL DB (at least for the procedure)&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In my case the SQL EXEC did not work when handing over the values as order based parameter (as defined in the SQL procedure). It was necessary to hand over the values metadata based.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;It works with this syntax:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [SCHEMA].[PROCEDURENAME]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;@field1 = '$(value1)',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;@field2&amp;nbsp;= '$(value2)',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;@field3&amp;nbsp;= '$(value3)';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Although in the SQL procedure&amp;nbsp; it is defined in which order the values are expected as parameter, it did not work with this syntax (order based):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SQL exec [schema].[PROCEDURENAME]('$(value1)','$(value2)','$(value3)')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So i hope this will help others in future.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 13:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1805023#M8954</guid>
      <dc:creator>Tino</dc:creator>
      <dc:date>2021-05-04T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while trying to execute a SQL procedure to store data from Sense directly into a MS SQL DB</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1805024#M8955</link>
      <description>&lt;P&gt;Thanks Seyko.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it was not helpful but in the meantime I´ve found and shared the way it works.&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Tino&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 13:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Problems-while-trying-to-execute-a-SQL-procedure-to-store-data/m-p/1805024#M8955</guid>
      <dc:creator>Tino</dc:creator>
      <dc:date>2021-05-04T13:16:49Z</dc:date>
    </item>
  </channel>
</rss>

