microsoft-machine-learning-server

Query for R Machine Learning Services - Filtering Categories in Where Clause

江枫思渺然 提交于 2021-02-11 14:14:06
问题 I am trying to run a query in SQL Server using the Machine Learning Services extension. So this is the problem I am having; DECLARE @query NVARCHAR(MAX) = ' SELECT CATEGORY1,CATEGORY2 FROM TABLE WHERE CATEGORY1 = 'A' AND CATEGORY2 = 'B' ' EXEC sp_execute_external_script @language = N'R', @script = N'data <- Rscript' ,@input_data_1 = @query ,@input_data_1_name= N'data' You see I am creating a variable with a string value, which is the SQL Query. This query is then passed into the stored