<?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 Remote SQL Server Instance Connection using JDBC in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113804#M44642</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am connecting Remote SQL Server Instance using JDBC Driver, I have enabled TCP/IP and Setup the Firewall Rule. When i am querying the instance i am getting this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(com.microsoft.sqlserver.jdbc.SQLServerException) The TCP/IP connection to the host 192.168.x.x, port 1433 has failed. Error: "Connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;remote_table &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; spark.read&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sqlserver"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt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;SPAN&gt;"PRACTICE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"dbtable"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"dbo.TblGender"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;load&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;remote_table.&lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My question is:&lt;BR /&gt;1. I am using ipv4 address of my personal computer as host, so is it correct?&lt;BR /&gt;2. If i am using the server name as host i am getting the same error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If everything is correct then what could be the problem?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Upendra Dwivedi&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Mar 2025 13:37:36 GMT</pubDate>
    <dc:creator>Upendra_Dwivedi</dc:creator>
    <dc:date>2025-03-27T13:37:36Z</dc:date>
    <item>
      <title>Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113804#M44642</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am connecting Remote SQL Server Instance using JDBC Driver, I have enabled TCP/IP and Setup the Firewall Rule. When i am querying the instance i am getting this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(com.microsoft.sqlserver.jdbc.SQLServerException) The TCP/IP connection to the host 192.168.x.x, port 1433 has failed. Error: "Connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;remote_table &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; spark.read&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sqlserver"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"host"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"192.168.x.x"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&l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PAN&gt;"dbtable"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"dbo.TblGender"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;load&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;remote_table.&lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My question is:&lt;BR /&gt;1. I am using ipv4 address of my personal computer as host, so is it correct?&lt;BR /&gt;2. If i am using the server name as host i am getting the same error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If everything is correct then what could be the problem?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Upendra Dwivedi&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Mar 2025 13:37:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113804#M44642</guid>
      <dc:creator>Upendra_Dwivedi</dc:creator>
      <dc:date>2025-03-27T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113831#M44654</link>
      <description>&lt;P&gt;192.168.x.x is a local ip address, it will not work in databricks notebook. First try to find your public ip address and try to connect through SQL Server management studio or .udl file. If it works, then you can use the same ip in notebook.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 18:21:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113831#M44654</guid>
      <dc:creator>Davinder</dc:creator>
      <dc:date>2025-03-27T18:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113855#M44661</link>
      <description>&lt;P&gt;If you want to access a local SQL server, you'll need a Private Link to access the server. If it's on your own local machine, that's likely not possible. Creating a VPN to your machine is a unique problem, and you would be better off using a VM or a PAAS SQL database as the source.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 04:31:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113855#M44661</guid>
      <dc:creator>turagittech</dc:creator>
      <dc:date>2025-03-28T04:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113877#M44668</link>
      <description>&lt;P&gt;I am able to connect using is ip address through another laptop where ssms is installed and i have tested the connection using udl file, i am able to connect. i think this is not the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 11:12:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113877#M44668</guid>
      <dc:creator>Upendra_Dwivedi</dc:creator>
      <dc:date>2025-03-28T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113878#M44669</link>
      <description>&lt;P&gt;Thank You for the reply but the solution should be on-prem ssms or any other rdbms direct connection with azure databricks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 11:14:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113878#M44669</guid>
      <dc:creator>Upendra_Dwivedi</dc:creator>
      <dc:date>2025-03-28T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remote SQL Server Instance Connection using JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113893#M44670</link>
      <description>&lt;P&gt;Yes, that will work because you are on the same local network. To connect from the outside network, you have to use the public ip address.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 12:06:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-sql-server-instance-connection-using-jdbc/m-p/113893#M44670</guid>
      <dc:creator>Davinder</dc:creator>
      <dc:date>2025-03-28T12:06:30Z</dc:date>
    </item>
  </channel>
</rss>

