<?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 Azure SQL Connection. Connection reset (due to timeout) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Azure-SQL-Connection-Connection-reset-due-to-timeout/m-p/2295693#M68439</link>
    <description>&lt;P&gt;I cant find a solution to solve the &lt;I&gt;Connection reset &lt;/I&gt;error. So I have various sql-scripts that run more or less between 20 min - 1 hour. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job-setup is plain and simple and is triggered from the crontab with different filepath parameter sql-script:&lt;/P&gt;&lt;P&gt;&lt;I&gt;Open a connection (auto commit=true) , read a file with sql , execute it. Done &amp;gt; Close connection.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;My additional parameters/properties:  The -1 = indefinite&lt;/P&gt;&lt;P&gt;"MultipleActiveResultSets=false&lt;/P&gt;&lt;P&gt;;PersistSecurityInfo=false&lt;/P&gt;&lt;P&gt;;encrypt=true&lt;/P&gt;&lt;P&gt;;trustServerCertificate=false&lt;/P&gt;&lt;P&gt;;hostNameInCertificate=*.database.windows.net;loginTimeout=30&lt;/P&gt;&lt;P&gt;;&lt;B&gt;cancelQueryTimeout=-1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;;queryTimeout=-1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However Azure SQL Gateway drops the connection, it basically states... screw you, bye bye... &lt;B&gt;&lt;I&gt;&amp;nbsp;Connection reset&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Just a little extra context because finding root cause of errors is always tricky, but 9 outta 10 its straightforward. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;Ive been running into this issue for over two years, it happened occasionaly once every 3 months... adding more jobs the frequency of this error increased. &lt;/P&gt;&lt;P&gt;Jobs are tested and run perfectly fine also in production. The common denominator between these jobs is that it is always a sql-script where I get the same error: SQLServerException: Connection reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the beginning I blamed Azure, it must have something to do with maintenance or cleanup, so if I wanted to avoid that I had to switch to the SQL Datawarehouse and pay way more instead of running this cheap instance... but no real harm was done. I live with the fact that a job takes ages (if everything is done to get the max performance out of the engine its ok) and if once a while the same error pops up, the next day its fine.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Searching lead me to :  &lt;/P&gt;&lt;P&gt;* Idle by the Azure SQL Gateway, where TCP&amp;nbsp;keepalive&amp;nbsp;messages might be occurring (making the connection not idle from a TCP perspective), &lt;B&gt;but not had an active query in 30 minutes&lt;/B&gt;. In this scenario, the Gateway will determine that the TDS connection is idle at 30 minutes and terminate the connection.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:22:20 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2024-11-16T01:22:20Z</dc:date>
    <item>
      <title>Azure SQL Connection. Connection reset (due to timeout)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Azure-SQL-Connection-Connection-reset-due-to-timeout/m-p/2295693#M68439</link>
      <description>&lt;P&gt;I cant find a solution to solve the &lt;I&gt;Connection reset &lt;/I&gt;error. So I have various sql-scripts that run more or less between 20 min - 1 hour. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job-setup is plain and simple and is triggered from the crontab with different filepath parameter sql-script:&lt;/P&gt;&lt;P&gt;&lt;I&gt;Open a connection (auto commit=true) , read a file with sql , execute it. Done &amp;gt; Close connection.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;My additional parameters/properties:  The -1 = indefinite&lt;/P&gt;&lt;P&gt;"MultipleActiveResultSets=false&lt;/P&gt;&lt;P&gt;;PersistSecurityInfo=false&lt;/P&gt;&lt;P&gt;;encrypt=true&lt;/P&gt;&lt;P&gt;;trustServerCertificate=false&lt;/P&gt;&lt;P&gt;;hostNameInCertificate=*.database.windows.net;loginTimeout=30&lt;/P&gt;&lt;P&gt;;&lt;B&gt;cancelQueryTimeout=-1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;;queryTimeout=-1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However Azure SQL Gateway drops the connection, it basically states... screw you, bye bye... &lt;B&gt;&lt;I&gt;&amp;nbsp;Connection reset&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Just a little extra context because finding root cause of errors is always tricky, but 9 outta 10 its straightforward. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;Ive been running into this issue for over two years, it happened occasionaly once every 3 months... adding more jobs the frequency of this error increased. &lt;/P&gt;&lt;P&gt;Jobs are tested and run perfectly fine also in production. The common denominator between these jobs is that it is always a sql-script where I get the same error: SQLServerException: Connection reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the beginning I blamed Azure, it must have something to do with maintenance or cleanup, so if I wanted to avoid that I had to switch to the SQL Datawarehouse and pay way more instead of running this cheap instance... but no real harm was done. I live with the fact that a job takes ages (if everything is done to get the max performance out of the engine its ok) and if once a while the same error pops up, the next day its fine.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Searching lead me to :  &lt;/P&gt;&lt;P&gt;* Idle by the Azure SQL Gateway, where TCP&amp;nbsp;keepalive&amp;nbsp;messages might be occurring (making the connection not idle from a TCP perspective), &lt;B&gt;but not had an active query in 30 minutes&lt;/B&gt;. In this scenario, the Gateway will determine that the TDS connection is idle at 30 minutes and terminate the connection.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Azure-SQL-Connection-Connection-reset-due-to-timeout/m-p/2295693#M68439</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2024-11-16T01:22:20Z</dc:date>
    </item>
  </channel>
</rss>

