<?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: How to execute stored procedures on synapse sql pool from databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/81650#M36379</link>
    <description>&lt;P&gt;Hi thanks for responding, how would i go about doing that? Do you have anything with more detail? Im glad to try whatever suggestions you have! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 13:12:33 GMT</pubDate>
    <dc:creator>doodateika</dc:creator>
    <dc:date>2024-08-02T13:12:33Z</dc:date>
    <item>
      <title>How to execute stored procedures on synapse sql pool from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/81309#M36263</link>
      <description>&lt;P&gt;In the current version of databricks, previous methods to execute stored procedures seem to fail.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.sparkContext._gateway.jvm.java.sql.DriverManager/&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark._sc._gateway.jvm.java.sql.DriverManager returns that it is JVM dependent and will not work. Using pyodbc does not currently like it used to because drivers must be installed and using init scripts at DBFS seems to be deprecated in addition to authentication passthrough for storing the init scripts at ABFSS. So my question is: What is the current way to execute synapse stored procedures from databricks? Do I have it wrong and the methods above actually work? Is there some new method that i have missed in the docs?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jul 2024 12:25:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/81309#M36263</guid>
      <dc:creator>doodateika</dc:creator>
      <dc:date>2024-07-31T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute stored procedures on synapse sql pool from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/81650#M36379</link>
      <description>&lt;P&gt;Hi thanks for responding, how would i go about doing that? Do you have anything with more detail? Im glad to try whatever suggestions you have! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:12:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/81650#M36379</guid>
      <dc:creator>doodateika</dc:creator>
      <dc:date>2024-08-02T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute stored procedures on synapse sql pool from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/83986#M37091</link>
      <description>&lt;P&gt;I'm facing the same issue&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, is there a working solution to execute a stored procedure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 04:52:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/83986#M37091</guid>
      <dc:creator>javiermd13</dc:creator>
      <dc:date>2024-08-23T04:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute stored procedures on synapse sql pool from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/83994#M37095</link>
      <description>&lt;P&gt;can you create a connection to external data in unity catalog, and then:&lt;/P&gt;&lt;P&gt;use &amp;lt;connectiondb&amp;gt;;&lt;BR /&gt;exec &amp;lt;sp&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 06:36:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/83994#M37095</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-08-23T06:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute stored procedures on synapse sql pool from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/84009#M37099</link>
      <description>&lt;P&gt;Hi, my issue was "resolved" when i switched to personal compute with 14.3 LTS ML Runtime. OAuth did not seem to make a difference since i still needed to use drivermanager at the end of the day. So if you need a temporary solution i would suggest trying that, but i do hope that there are plans for fixing this in the future.&lt;/P&gt;&lt;P&gt;# Write your SQL statement as a string&lt;BR /&gt;statement = """TRUNCATE TABLE dbo.test"""&lt;/P&gt;&lt;P&gt;# Fetch the driver manager from your spark context&lt;BR /&gt;driver_manager = spark._sc._gateway.jvm.java.sql.DriverManager&lt;/P&gt;&lt;P&gt;# Create a connection object using a jdbc-url, + sql uname &amp;amp; pass&lt;BR /&gt;con = driver_manager.getConnection(jdbc_url, user, password)&lt;/P&gt;&lt;P&gt;# Create callable statement and execute it&lt;BR /&gt;exec_statement = con.prepareCall(statement)&lt;BR /&gt;exec_statement.execute()&lt;/P&gt;&lt;P&gt;# Close connections&lt;BR /&gt;exec_statement.close()&lt;BR /&gt;con.close()&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 07:20:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-execute-stored-procedures-on-synapse-sql-pool-from/m-p/84009#M37099</guid>
      <dc:creator>doodateika</dc:creator>
      <dc:date>2024-08-23T07:20:38Z</dc:date>
    </item>
  </channel>
</rss>

