<?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: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8553#M4158</link>
    <description>&lt;P&gt;@Alexander Mora Araya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Databricks is on Azure, so it needs to somehow connect to your On-Prem Database.&lt;/P&gt;&lt;P&gt;It means that the network connection needs to be opened.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 12:32:46 GMT</pubDate>
    <dc:creator>daniel_sahal</dc:creator>
    <dc:date>2023-03-01T12:32:46Z</dc:date>
    <item>
      <title>Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8550#M4155</link>
      <description>&lt;P&gt;Is it possible to connect to SQL Server on-premise &lt;B&gt;(Not Azure)&lt;/B&gt; from Databricks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to ping my virtualbox VM (with Windows Server 2022) from within Databricks and the request timed out.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh
&amp;nbsp;
ping 122.138.0.14&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is what my connection might look like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;jdbcHostname = "122.138.0.14"
jdbcDatabase = "AdventureWorksDW2019"
username = "sa"
password = "AStrongPassword"
jdbcPort = 1433
&amp;nbsp;
jdbcUrl = "jdbc:sqlserver://{0}:{1};dabatabse={2};user={3};password={4}"\
            .format(jdbcHostname, jdbcPort, jdbcDatabase, username, password)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But when I tried to get data from my table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df_product = spark.read.jdbc(url=jdbcUrl, table='DimProduct')
&amp;nbsp;
df_address.display()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 122.138.0.14, 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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 20:07:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8550#M4155</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-02-28T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8551#M4156</link>
      <description>&lt;P&gt;@Alexander Mora Araya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible however you need to make sure that the connectivity between Azure Cloud and On-Prem is setup. It's not a databricks issue.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 06:28:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8551#M4156</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-03-01T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8552#M4157</link>
      <description>&lt;P&gt;@Daniel Sahal​&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As stated in the problem, it is not in any cloud and it is a virtual box VM trying to communicate with databricks. (&lt;B&gt;NO AZURE&lt;/B&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:39:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8552#M4157</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-03-01T09:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8553#M4158</link>
      <description>&lt;P&gt;@Alexander Mora Araya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Databricks is on Azure, so it needs to somehow connect to your On-Prem Database.&lt;/P&gt;&lt;P&gt;It means that the network connection needs to be opened.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 12:32:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8553#M4158</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-03-01T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8554#M4159</link>
      <description>&lt;P&gt;@Daniel Sahal​&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are totally right. I tried it using my Azure SQL Server with my Databricks Community Edition and it works fine. I was just hoping (magically) that there was a way to connect to a sql server on premise. It would have been nice for testing! &lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:33:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8554#M4159</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-03-02T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8555#M4160</link>
      <description>&lt;P&gt;@Alexander Mora Araya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a way to connect to your on-prem SQL Server through the public internet, but it would require you to configure your network connection so the 1433 port would be accessed from outside. It would of course give a big security concern and i don't recommend that.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 06:33:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8555#M4160</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-03-03T06:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8556#M4161</link>
      <description>&lt;P&gt;@Daniel Sahal​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the advice. Do you mean by creating an inbound rule for port 1433? If that is the case, that did not work for me.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:48:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8556#M4161</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-03-03T16:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8557#M4162</link>
      <description>&lt;P&gt;@Alexander Mora Araya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;It really depends on your ISP, firewalls etc. Maybe port forwarding is a key here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMO it's not worth digging through it since you can use AzureSQL DB.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 06:53:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8557#M4162</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-03-06T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8559#M4164</link>
      <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I was not able to connect to on premise sql server. Thanks for asking.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 16:12:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8559#M4164</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-03-06T16:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8560#M4165</link>
      <description>&lt;P&gt;You need to setup the VNet and wire up the connection between Databricks and on-prem via VPN or ExpressRoute &lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:49:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8560#M4165</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-04-26T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8561#M4166</link>
      <description>&lt;P&gt;Thanks Isaach, but no via vpn or expressroute. Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:52:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8561#M4166</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-04-26T14:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8562#M4167</link>
      <description>&lt;P&gt;check your firewall settings. Databricks takes fully qualified DNS names instead of server names. &lt;/P&gt;&lt;P&gt;One way to get around it is to use IP address directly to reference the server instead server name if you do not have control to the DNS mapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:01:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/8562#M4167</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-04-26T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SQL Server (on-premise) to Databricks via jdbc:sqlserver</title>
      <link>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/89119#M37696</link>
      <description>&lt;P&gt;I tried to connect to localhost sql server through databricks community edition, but it failed. I have created an IP rule on port 1433 allowed inbound connection from all public network, but still didn't connect. I tried locally using python its working fine.&lt;/P&gt;&lt;P&gt;maybe databricks community edition doesn't have capability to connect to private ip as it has many restrictions.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 04:04:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connecting-sql-server-on-premise-to-databricks-via-jdbc/m-p/89119#M37696</guid>
      <dc:creator>BharathKumarS</dc:creator>
      <dc:date>2024-09-09T04:04:24Z</dc:date>
    </item>
  </channel>
</rss>

