I'm trying to call .py file in SQL ML Services and put it into the @script variable. This issue differs from 'Call Python file from within SQL Server' question as I do not want it to be put into SQL job.
I need sth like:
EXEC sp_execute_external_script @language = N'Python',
@script = (read from python file .py)
The point is NOT to use any python code in the SQL scripts and reference it to the .py file for maintainability purposes.