<?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: Connect and process Azure analysis services in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41243#M27317</link>
    <description>&lt;P&gt;To connect to Azure Analysis Services from Databricks, you can try the SQL Server Analysis Services (SSAS) connector. Please note that adodbapi is a Python library used for connecting to databases using the ADO (ActiveX Data Objects) technology, which is a part of the Windows COM (Component Object Model) technology. It's not directly compatible with Databricks as Databricks runs on Linux-based Spark clusters and doesn't support Windows COM/ADO technologies. So, can you try to&amp;nbsp;connect to Azure Analysis Services using the Pyodbc library:&lt;/P&gt;&lt;P&gt;%python&lt;BR /&gt;import pyodbc&lt;BR /&gt;&lt;BR /&gt;driver = "{ODBC Driver 17 for SQL Server}"&lt;BR /&gt;server = "&lt;A href="http://your_server.database.windows.net/" target="_blank" rel="noopener noreferrer"&gt;your_server.database.windows.net&lt;/A&gt;"&lt;BR /&gt;database = "your_database"&lt;BR /&gt;username = "your_username"&lt;BR /&gt;password = "your_password"&lt;BR /&gt;analysis_services_database = "your_analysis_services_database"&lt;BR /&gt;&lt;BR /&gt;connection_string = f"DRIVER={driver};SERVER={server};DATABASE={database};UID={username};PWD={password};"&lt;BR /&gt;&lt;BR /&gt;conn = pyodbc.connect(connection_string, autocommit=True)&lt;BR /&gt;cursor = conn.cursor()&lt;BR /&gt;&lt;BR /&gt;query = f"SELECT * FROM {analysis_services_database}..."&lt;BR /&gt;cursor.execute(query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please enter your actual MSFT Azure Analysis Services server, database, username, and password.&amp;nbsp;Please note that you need to install the Pyodbc library and ODBC Driver for SQL Server in your Databricks cluster.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 22:04:12 GMT</pubDate>
    <dc:creator>SparkJun</dc:creator>
    <dc:date>2023-08-23T22:04:12Z</dc:date>
    <item>
      <title>Connect and process Azure analysis services</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41181#M27309</link>
      <description>&lt;P&gt;How do I connect to Azure analysis services from databricks? I need to process the tabular model from databricks. I tried to use adodbapi. while connecting it is failing with error message "windows com error dispatch adodb.connection". please help&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:25:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41181#M27309</guid>
      <dc:creator>omfspartan</dc:creator>
      <dc:date>2023-08-23T14:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect and process Azure analysis services</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41243#M27317</link>
      <description>&lt;P&gt;To connect to Azure Analysis Services from Databricks, you can try the SQL Server Analysis Services (SSAS) connector. Please note that adodbapi is a Python library used for connecting to databases using the ADO (ActiveX Data Objects) technology, which is a part of the Windows COM (Component Object Model) technology. It's not directly compatible with Databricks as Databricks runs on Linux-based Spark clusters and doesn't support Windows COM/ADO technologies. So, can you try to&amp;nbsp;connect to Azure Analysis Services using the Pyodbc library:&lt;/P&gt;&lt;P&gt;%python&lt;BR /&gt;import pyodbc&lt;BR /&gt;&lt;BR /&gt;driver = "{ODBC Driver 17 for SQL Server}"&lt;BR /&gt;server = "&lt;A href="http://your_server.database.windows.net/" target="_blank" rel="noopener noreferrer"&gt;your_server.database.windows.net&lt;/A&gt;"&lt;BR /&gt;database = "your_database"&lt;BR /&gt;username = "your_username"&lt;BR /&gt;password = "your_password"&lt;BR /&gt;analysis_services_database = "your_analysis_services_database"&lt;BR /&gt;&lt;BR /&gt;connection_string = f"DRIVER={driver};SERVER={server};DATABASE={database};UID={username};PWD={password};"&lt;BR /&gt;&lt;BR /&gt;conn = pyodbc.connect(connection_string, autocommit=True)&lt;BR /&gt;cursor = conn.cursor()&lt;BR /&gt;&lt;BR /&gt;query = f"SELECT * FROM {analysis_services_database}..."&lt;BR /&gt;cursor.execute(query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please enter your actual MSFT Azure Analysis Services server, database, username, and password.&amp;nbsp;Please note that you need to install the Pyodbc library and ODBC Driver for SQL Server in your Databricks cluster.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 22:04:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41243#M27317</guid>
      <dc:creator>SparkJun</dc:creator>
      <dc:date>2023-08-23T22:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connect and process Azure analysis services</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41368#M27345</link>
      <description>&lt;P&gt;Thank you. I ended up using Azure Analysis services rest api for now because my use case is to process the model and tables from databricks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:21:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/41368#M27345</guid>
      <dc:creator>omfspartan</dc:creator>
      <dc:date>2023-08-24T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connect and process Azure analysis services</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/45451#M27887</link>
      <description>&lt;P&gt;I got another use case now "to run dax against Azure Analysis Services model" from AWS databricks. I tried above suggestion from "Jun Yang" and it is erroring out after 30 seconds with the exception that "Login timeout is expired"&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:39:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/45451#M27887</guid>
      <dc:creator>omfspartan</dc:creator>
      <dc:date>2023-09-20T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connect and process Azure analysis services</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/111132#M43802</link>
      <description>&lt;P&gt;I am working on the same use case. Can you please share if you were able to achieve this and how? Using pyodbc, I have tried but I'm facing same error, it seems like i cannot use pyodbc, only option is to use pyadomd, but that is only supported on windows&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:54:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-and-process-azure-analysis-services/m-p/111132#M43802</guid>
      <dc:creator>rbee</dc:creator>
      <dc:date>2025-02-25T13:54:48Z</dc:date>
    </item>
  </channel>
</rss>

