<?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: Install the ODBC Driver 17 for SQL Server in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/141109#M51620</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/197050"&gt;@kathrynshai&lt;/a&gt;&amp;nbsp;I encountered an issue with the Init Script, which was resolved by switching from CRLF to LF (Unix):&lt;/P&gt;&lt;P&gt;Incorrect Line Endings (CRLF vs. LF): If the script was generated on a Windows platform and subsequently uploaded to a Unity Catalog volume, it may contain Windows-style line endings (CRLF). However, Linux environments (where Databricks clusters operate) anticipate LF line endings.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2025 07:36:27 GMT</pubDate>
    <dc:creator>angelaguzma</dc:creator>
    <dc:date>2025-12-04T07:36:27Z</dc:date>
    <item>
      <title>Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110397#M43560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not a Data Engineer, I want to connect to ssas. It looks like it can be connected through&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pyodbc. however looks like&amp;nbsp; I need to install "ODBC Driver 17 for SQL Server" using the following command. How do i install the driver on the cluster and are there any requirement to connect with SSAS ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GJ2_1-1739798450883.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14901iBE70BE347EBA72B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GJ2_1-1739798450883.png" alt="GJ2_1-1739798450883.png" /&gt;&lt;/span&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:22:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110397#M43560</guid>
      <dc:creator>GJ2</dc:creator>
      <dc:date>2025-02-17T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110401#M43562</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/138965"&gt;@GJ2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You will need to create a file as init script .sh and then put it into the server init script.&amp;nbsp;&lt;A href="https://docs.databricks.com/en/init-scripts/cluster-scoped.html" target="_blank"&gt;https://docs.databricks.com/en/init-scripts/cluster-scoped.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can use this script:&lt;/P&gt;
&lt;P&gt;\#!/bin/bash&lt;/P&gt;
&lt;P&gt;# Add Microsoft package repository&lt;BR /&gt;curl &lt;A href="https://packages.microsoft.com/keys/microsoft.asc" target="_blank"&gt;https://packages.microsoft.com/keys/microsoft.asc&lt;/A&gt; | apt-key add -&lt;BR /&gt;curl &lt;A href="https://packages.microsoft.com/config/ubuntu/$(lsb_release" target="_blank"&gt;https://packages.microsoft.com/config/ubuntu/$(lsb_release&lt;/A&gt; -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list&lt;BR /&gt;sudo apt-get update&lt;/P&gt;
&lt;P&gt;# Install ODBC Driver 17 for SQL Server&lt;BR /&gt;sudo ACCEPT_EULA=Y apt-get -q -y install msodbcsql17&lt;/P&gt;
&lt;P&gt;# Install additional required packages&lt;BR /&gt;sudo apt-get -y install unixodbc&lt;BR /&gt;sudo apt-get -y install libgssapi-krb5-2&lt;BR /&gt;sudo apt-get -y install odbcinst&lt;BR /&gt;sudo apt-get -y install odbcinst1debian2&lt;BR /&gt;sudo apt-get -y install libodbc1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Save the initialization script in a location accessible by Databricks, e.g., DBFS (Databricks File System / Workspace File).&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;SPAN&gt;Attach the initialization script to your Databricks cluster:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Go to the Databricks workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Navigate to the cluster you want to install the driver on.&lt;/LI&gt;
&lt;LI&gt;Click on the "Clusters" and then select the cluster.&lt;/LI&gt;
&lt;LI&gt;Click on "Edit" to modify the cluster configuration.&lt;/LI&gt;
&lt;LI&gt;Scroll down to the "Advanced Options" and select the "Init Scripts" tab.&lt;/LI&gt;
&lt;LI&gt;Add a new script and provide the path to the script saved in DBFS / Workspace File .sh&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:00:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110401#M43562</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-17T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110404#M43563</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;do you know if Lakehouse Federation supports SSAS, or just the transactional catalog of SQL Server? I looked in the docs, SSAS isn't mentioned specifically, and now I'm curious.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:32:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110404#M43563</guid>
      <dc:creator>Rjdudley</dc:creator>
      <dc:date>2025-02-17T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110408#M43565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/107723"&gt;@Rjdudley&lt;/a&gt;&amp;nbsp;- SSAS isn't supported only SQL server.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:47:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110408#M43565</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-17T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110435#M43575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;Basically what I want to do is get all the tables used in Power BI datasets. I am trying to connect to xmla endpoint through SSMS and get the tables names used in Power BI dataset. If I do it directly in SSAS then I can only query one dataset. I want to loop through all the PBI datasets (databases when connected through SSAS) and get the tables used in each dataet. Is there any better way to do this ? Can I do this in databricks notebook? Thanks heaps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 02:32:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110435#M43575</guid>
      <dc:creator>GJ2</dc:creator>
      <dc:date>2025-02-18T02:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110753#M43674</link>
      <description>&lt;P&gt;I have the same requirement of installing the Microsoft ODBC driver. I added your code in the init script and I got the following error:&amp;nbsp; "databricks_error_message": "Cluster scoped init script /Volumes/packages/install_sqlserver_driver.sh failed: Script exit status is non-zero". How can we solve it?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 14:18:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/110753#M43674</guid>
      <dc:creator>pperin</dc:creator>
      <dc:date>2025-02-20T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/118748#M45702</link>
      <description>&lt;P&gt;To connect to SSAS using pyodbc, you're right that installing the "ODBC Driver 17 for SQL Server" is required. You can install it on your cluster using the appropriate system package manager (e.g., apt for Ubuntu or yum for CentOS), and make sure the driver is accessible from all nodes if it's a distributed environment. Also, ensure that your connection string includes the correct SSAS server name and authentication details. Just like you wouldn’t stream without first installing a proper app—such as visiting a reliable site like Tele-Latino to download a free streaming app—you can’t connect to SSAS without the correct driver in place. Proper setup is key for smooth access.&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 10:58:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/118748#M45702</guid>
      <dc:creator>karifclark</dc:creator>
      <dc:date>2025-05-10T10:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/125645#M47501</link>
      <description>&lt;P&gt;I had this problem with Init Script and changing from CRLF to LF (Unix) solved it:&lt;/P&gt;&lt;P&gt;Incorrect Line Endings (CRLF vs. LF): If the script was created on a Windows system and uploaded to a Unity Catalog volume, it might have Windows-style line endings (CRLF). Linux environments (where Databricks clusters run) expect LF line endings.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 19:50:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/125645#M47501</guid>
      <dc:creator>dinarde</dc:creator>
      <dc:date>2025-07-17T19:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138212#M50883</link>
      <description>&lt;P&gt;Hello &lt;STRONG&gt;Databricks Community&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;You’re correct—connecting to SSAS via pyodbc usually requires the “ODBC Driver 17 for SQL Server.” To install it on your cluster, the steps depend on your OS: for Linux, you typically add the Microsoft repository and install via apt-get or yum; for Windows, you can download the installer from Microsoft’s official site. Make sure the cluster has network access to the SSAS server and that any necessary credentials and firewall rules are properly configured. Also, note that for SSAS, you might need the correct MSOLAP/OLAP support depending on whether you’re connecting to a multidimensional or tabular model. For additional guidance and downloads, always refer to Microsoft’s official documentation. And if you need a break from data setups, you can visit Dooflix, a free streaming app, to relax and catch up on shows.&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 10:50:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138212#M50883</guid>
      <dc:creator>kathrynshai</dc:creator>
      <dc:date>2025-11-08T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138281#M50896</link>
      <description>&lt;P&gt;Why not using SQL Server Access Connector directly instead of ODBC driver? With first option you don't need to install anything. Using that in some of my projects and working pretty fine to connect Azure SQL databases.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2025 14:19:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138281#M50896</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-09T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138387#M50921</link>
      <description>&lt;P&gt;If you only need to interact with your cloud SQL database, I recommend you use simple code like displayed below for running select queries. To write would be very similar. Take a look here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/connect/spark/connector?view=sql-server-ver17" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/sql/connect/spark/connector?view=sql-server-ver17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1762766404898.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21509i9D6B62B32BCF44D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1762766404898.png" alt="Coffee77_0-1762766404898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 09:30:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138387#M50921</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-10T09:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138417#M50925</link>
      <description>&lt;P&gt;The original question asked about SSAS, which is not supported.&amp;nbsp; Only the SQL Server OLTP engine is supported.&amp;nbsp; Also, this question was asked prior to public availability of the SQL Connector.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 13:32:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138417#M50925</guid>
      <dc:creator>Rjdudley</dc:creator>
      <dc:date>2025-11-10T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138424#M50927</link>
      <description>&lt;P&gt;Got it, I didn't realize SSAS was asked, sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:12:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/138424#M50927</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-10T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/141109#M51620</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/197050"&gt;@kathrynshai&lt;/a&gt;&amp;nbsp;I encountered an issue with the Init Script, which was resolved by switching from CRLF to LF (Unix):&lt;/P&gt;&lt;P&gt;Incorrect Line Endings (CRLF vs. LF): If the script was generated on a Windows platform and subsequently uploaded to a Unity Catalog volume, it may contain Windows-style line endings (CRLF). However, Linux environments (where Databricks clusters operate) anticipate LF line endings.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 07:36:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/141109#M51620</guid>
      <dc:creator>angelaguzma</dc:creator>
      <dc:date>2025-12-04T07:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Install the ODBC Driver 17 for SQL Server</title>
      <link>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/141125#M51626</link>
      <description>&lt;P&gt;As&amp;nbsp;SQL Server is included in the Lakehouse federation driver, it is built in databricks. Install only in case you need a different version - the built-in one is not working&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 09:50:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-the-odbc-driver-17-for-sql-server/m-p/141125#M51626</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-12-04T09:50:32Z</dc:date>
    </item>
  </channel>
</rss>

