<?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: Databricks to snowflake data load in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-to-snowflake-data-load/m-p/136400#M50557</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25639"&gt;@SuMiT1&lt;/a&gt;&amp;nbsp; The recommended method to connect to snowflake from databricks is&amp;nbsp;OAuth with Client Credentials Flow.&lt;/P&gt;&lt;P&gt;This method uses a registered Azure AD application to obtain an OAuth token without user interaction.&lt;/P&gt;&lt;H4&gt;Steps:&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;Register an app in Azure AD and configure it for Snowflake OAuth integration.&lt;/LI&gt;&lt;LI&gt;Create a security integration in Snowflake using the client credentials.&lt;/LI&gt;&lt;LI&gt;Use the token in your Spark job.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the full guide.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.snowflake.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-Client-Credentials" target="_blank" rel="noopener"&gt;https://community.snowflake.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-Client-Credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other option is&amp;nbsp;&amp;nbsp;OAuth with User Credentials Flow (Interactive Login)&lt;/P&gt;&lt;P&gt;This method uses a user's Azure AD credentials to obtain a token. It's less ideal for automation but works for interactive sessions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://snowforce.my.site.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-User-Credentials" target="_blank"&gt;https://snowforce.my.site.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-User-Credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2025 12:56:30 GMT</pubDate>
    <dc:creator>nayan_wylde</dc:creator>
    <dc:date>2025-10-28T12:56:30Z</dc:date>
    <item>
      <title>Databricks to snowflake data load</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-to-snowflake-data-load/m-p/136377#M50554</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m trying to load data from Databricks into Snowflake using the Snowflake Spark connector. I’m using a generic username and password, but I’m unable to log in using these credentials directly. In the Snowflake UI, I can only log in through “Sign in with Azure AD.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code snippet I’m using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sfOptions = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfURL": "XD1.privatelink.snowflakecomputing.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfDatabase": "Z_AICS",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfSchema": "ASK_SMG",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfWarehouse": "WAGT_ETL",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfUser": "sys_aski@xyz.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfPassword": "Qtr3tdint$",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "sfRole": "AZURE_DATA_PLATFORMS"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;selected_df.write \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; .format("snowflake") \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; .options(**sfOptions) \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; .option("dbtable", "DIM_TOPIC") \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; .mode("overwrite") \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; .save()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I’m getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Incorrect username or password was specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone please suggest how to authenticate and connect Snowflake from Databricks when Azure AD SSO is required for login?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 11:19:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-to-snowflake-data-load/m-p/136377#M50554</guid>
      <dc:creator>SuMiT1</dc:creator>
      <dc:date>2025-10-28T11:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks to snowflake data load</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-to-snowflake-data-load/m-p/136400#M50557</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25639"&gt;@SuMiT1&lt;/a&gt;&amp;nbsp; The recommended method to connect to snowflake from databricks is&amp;nbsp;OAuth with Client Credentials Flow.&lt;/P&gt;&lt;P&gt;This method uses a registered Azure AD application to obtain an OAuth token without user interaction.&lt;/P&gt;&lt;H4&gt;Steps:&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;Register an app in Azure AD and configure it for Snowflake OAuth integration.&lt;/LI&gt;&lt;LI&gt;Create a security integration in Snowflake using the client credentials.&lt;/LI&gt;&lt;LI&gt;Use the token in your Spark job.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the full guide.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.snowflake.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-Client-Credentials" target="_blank" rel="noopener"&gt;https://community.snowflake.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-Client-Credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other option is&amp;nbsp;&amp;nbsp;OAuth with User Credentials Flow (Interactive Login)&lt;/P&gt;&lt;P&gt;This method uses a user's Azure AD credentials to obtain a token. It's less ideal for automation but works for interactive sessions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://snowforce.my.site.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-User-Credentials" target="_blank"&gt;https://snowforce.my.site.com/s/article/How-To-Connect-To-Snowflake-From-Azure-Databricks-Using-OAuth-User-Credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 12:56:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-to-snowflake-data-load/m-p/136400#M50557</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-10-28T12:56:30Z</dc:date>
    </item>
  </channel>
</rss>

