I want to Run or Execute a Python Script from MSSQL 2008.
I have a server with python, and what i want is that any PC in the local network can execute that scripts w
It worked using
EXEC xp_cmdshell 'C:/.../python.exe C:\...\script.py';
GO
One problem is that you need to use a .exe in the xp_cmdshell, so just with the python command it doesn't work, you must use the python.exe. Another problem was that the python script must be in the computer that is executing the script, previously the script was in a common server, but it denied the permission, and when the script was changed of directory to this server, it worked!.