I am currently trying SQL Server's new Machine Learning Services for Python by following Microsoft's tutorial. I am on a Win10 x64, SQL Server 2017 x64, using Jyputer Notebook and RevoScalepy.
Connection to the database is not a problem, as verified through pyodbc:
import pyodbc
sql_conn = pyodbc.connect(connection_string)
query = 'SELECT * from dbo.iris_data'
df = pd.read_sql(query, sql_conn)
df.head(5)
However, when trying to running a function on SQL Server through RevoScalePy's rx_exec() I receive the error message:
RuntimeError: revoscalepy function failed.
====== username ( process 0 ) has started run at 2019-02-18 09:25:58 W. Europe Standard Time ======
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'username'.
[Microsoft][ODBC Driver Manager] Connection not open
ODBC Error in SQLDisconnect
Could not open data source.
ImportDataSource function failed. Please see the console output for more information.