Hi @coool sweet ,
Yes, suggest you putting the python file on the same server with SQL server.
Please follow below steps;
When you creating a SQL Server Agent job step, please select:
- Step type: Operating system (CmdExec)
- Run as: here you can use Agent service account (less secure) or better option is to create dedicated service account and register it as a proxy account. If you decide to use Agent service account, you will be granting Server Admin privileges to python scripts.
- In command type: "C:\Windows\System32\cmd.exe" "python C:\Python\HL.py"
Please refer to this similar thread Call Python file from within SQL Server.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".