cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Python Script from an SQL Procedure

Former Member
0 Kudos

Hi All,

I have a requirement to call a Python script from an SQL Procedure.All the content i found on the Internet are for connecting to HANA through Python.But, i want the other way round.
Is it possible to call a Python script from an SQL Procedure?

Accepted Solutions (1)

Accepted Solutions (1)

lbreddemann
Active Contributor
0 Kudos

Nope.

Former Member
0 Kudos

Hi Lars,

Thanks for the reply!
As an alternative, can i run a Python Web App on the HANA Web Server?
Thanks!

lbreddemann
Active Contributor
0 Kudos

Running additional software on the SAP HANA server is generally not recommended and not even supported in some configurations. Those "third party" applications would use resources that are then not available to SAP HANA and thereby impact SAP HANA's performance.

I am not sure that/how it would be possible to call python code from the XS-Engine JavaScript code, but that would be about the only option I see to include python coding directly into a native SAP HANA application.

Other than that: build a classic multi-tier application with your python code or migrate the python logic to JavaScript or SQLScript.

Answers (0)