Forum Discussion

JoeHelloMaster's avatar
JoeHelloMaster
Copper Contributor
Feb 20, 2024

Using R and Python with SQL Server 2022 not possible

I want to use R and Python with SQL Server 2022, but I get an error if I try to exec the Python syntax.

I did everything that Microsoft recommends: https://learn.microsoft.com/en-us/sql/machine-learning/install/sql-machine-learning-services-windows-install-sql-2022?view=sql-server-ver16

But still I get an error if I try exec and Python OR R code.

If I try to execute R then

Unable to launch the runtime. ErrorCode 0x80004005

If I try to execute Python then

Unable to launch the runtime. ErrorCode 0x80004005

I found this in the rlauncher log:

Failed with (80070003) to start executable C:\ProgramData\SERVER3\R\bin\x64\rterm.exe with args

I am not a database engineer, can someone help? I do not understand why Microsoft realase Software that are not workable. 

  • same error , I had installed python 3.13, uninstalled it and installed python 3.10, it worked!

Resources