<?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: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521835#M14983</link>
    <description>&lt;P&gt;Of course you could use dynamic values, for example like:&lt;/P&gt;&lt;P&gt;let v = date(today(), 'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;sql select * from X where tab_date = '$(v)';&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 11:49:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2025-06-20T11:49:07Z</dc:date>
    <item>
      <title>Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521816#M14980</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;currently I'm dealing with some issues loading data from a MS SQL database into my qlik sense app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I've set up an MS SQL Server connection within my qlik sense hub. ==&amp;gt; ok&lt;/P&gt;&lt;P&gt;2. I load some tables (ABC, DEF,...) , containing different data types (bool, varchar, datetime,...) ==&amp;gt; ok&lt;/P&gt;&lt;P&gt;3. I try to load a VIEW, which reduced the amount of records of table ABC by "where&amp;nbsp; tab_date &amp;gt;= '2023-12-31' just to get records für 2024 and 2025 ==&amp;gt; ERROR&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.1. I tried different ways (geman format '31.12.2023' etc.) with no success. Everytime I get following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"ERROR [22008] The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.,"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Ok, so I tried to filter by '2023-31-12' or '12.31.2023' and this works fine. But this can't be the solution, because qlik sense now gets the records, but in MS SQL Management Studio my result is empty&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know, there are alternatives like year(tab_date) &amp;gt; 2023, but this is just an example and there are 100 of Views in the DWH and it is not practical to edit all Views, containing such terms.&lt;/P&gt;&lt;P&gt;Seems like, it is an ODBC issue, isn't it? I set up an custom ODBC connection with an system dsn. ==&amp;gt; It works, although both, ODBC and SQL Server connector use ODBC to connect.&lt;/P&gt;&lt;P&gt;I set up an OLE DB Connection...it works as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to fix it? My Database language is "english US", qlik sense was set up in german. Is this an unsupported setup? Can't believe it!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Some information about qlik Sense:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlik Sense May 2024 Patch 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;qliksenseserver: 14.187.17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlik ODBC Connector 7.61.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SQL Server Enterprise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Windows Server 2019 Standard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Version: 15.0.4410.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 09:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521816#M14980</guid>
      <dc:creator>roberttemplin</dc:creator>
      <dc:date>2025-06-20T09:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521827#M14981</link>
      <description>&lt;P&gt;I think your attempt of:&amp;nbsp;&lt;SPAN&gt;year(tab_date) &amp;gt; 2023 goes already in a suitable direction. Because it means that no view needs to be touched else the call could be appropriate&amp;nbsp;adjusted - and this may not mandatory a date-function else it might be any conversion, like to_varchar, cast, to_int (depends of what the data-base and the driver supports).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ideally it's always a pure number - from the source over any transformations into the target - to avoid most of the data-type stuff ...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521827#M14981</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-06-20T11:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521834#M14982</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;: Thx. for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case, it would be a possible way to fix it, but...&lt;/P&gt;&lt;P&gt;1. what about dynamic filter like&lt;/P&gt;&lt;P&gt;tab_date &amp;lt;= '2025-06-20' (CURRENT DATE) there is no way to replace it by a function like year(), month(), datepart() etc. because the filter must be dynamic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. this will&amp;nbsp;solve the problem, but not the cause&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't belive, that Qlik nor MS or other software producers did not deal with topics like different system languages/ data type formats. There must be a solution in reconfiguring Qlik Sense or windows to fix that issue. I HOPE SO &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521834#M14982</guid>
      <dc:creator>roberttemplin</dc:creator>
      <dc:date>2025-06-20T11:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521835#M14983</link>
      <description>&lt;P&gt;Of course you could use dynamic values, for example like:&lt;/P&gt;&lt;P&gt;let v = date(today(), 'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;sql select * from X where tab_date = '$(v)';&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521835#M14983</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-06-20T11:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521836#M14984</link>
      <description>&lt;P&gt;Sure, but this way I have to edit all relevant views in the DWH to fix it. Each DWH view is like a little DataMart, which can be used easy by the bi developers. Would prefer not to change them, cause there are "just" format convertion issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And as I can see, ODBC Connection and OLE DB Connection can handle the data and the queries. So it is not understandable &amp;nbsp;why the Microsoft SQL Connection can't handle it&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521836#M14984</guid>
      <dc:creator>roberttemplin</dc:creator>
      <dc:date>2025-06-20T12:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Issue Datetime MS SQL vs. Qlik Sense Enterprise</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521840#M14985</link>
      <description>&lt;P&gt;I suggest to look within the MS data-base community to get hints to special requirements to the syntax and to any possible dependencies of configurations within the data-base and/or the driver.&lt;/P&gt;&lt;P&gt;I wouldn't call it "just format convertion issues". Within the Qlik community has this stuff a huge amount - and I think it's the same by nearly all other (programming) tools. Of course, there is always a technically possibility to address these data but it will increase the complexity quite significantly if n different methods are needed. In Qlik it depends if a (field/variable) value is a string, a (pure) number or a formatted content to where and how it's created and later called. The development, maintaining and documentation efforts could become quite expensive.&lt;/P&gt;&lt;P&gt;It doesn't mean that there are no commonly formatted values within any views else only to perform if possible all the essential calculations and matching against pure numbers.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Converting-Issue-Datetime-MS-SQL-vs-Qlik-Sense-Enterprise/m-p/2521840#M14985</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-06-20T12:47:00Z</dc:date>
    </item>
  </channel>
</rss>

