• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Can i run stored procedure in spark pool synapse?

Resolved: Can i run stored procedure in spark pool synapse?

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I wanted to know how we can run stored procedure in spark pool (azure synapse) which i have created in dedicated SQL pool. Also can we run SQL queries to access data in ddsql pool in notebook.

Answer:

It is possible to do this (eg using an ODBC connection as described here) but you would be better off just using a Synapse Pipeline to do the orchestration:
  1. run a stored Proc activity which places the data you want to work with in a relevant table or storage account
  2. call a notebook activity using the spark.read.synapsesql method as described in detail here.

The pattern:
enter image description here
Is there a particular reason you are copying existing data from the sql pool into Spark? I do a very similar pattern but reserve it for things I can’t already do in SQL, such as sophisticated transform, RegEx, hard maths, complex string manipulation etc

If you have better answer, please add a comment about this, thank you!

azure azure-synapse spark-notebook
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to give rank on datetime column group by another column with userid in it

24/03/2023

Resolved: Passing 2 functions in onChange in react

24/03/2023

Resolved: Why doesn’t stringstream consume output during hex formatting?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.