tsql - sp_execute_external_script @language = N'R' -


how can - create 2 input data set referenced in @script

example

exec sp_execute_external_script @language = n'r'      , @script = n' outputdataset <- inputdataset'      , @input_data_1 = n''      , @input_data_2 = n'' -- line.     , @input_data_1_name = n'inputdataset'      , @output_data_1_name = n'outputdataset'   result sets ((plot nvarchar(max))); 

you have use @params if want more 1 input/output. assign data parameter of exact same name right after it.

exec sp_execute_external_script @language = n'r'      , @script = n'         notusedagain <- seconddataset;          outputdataset <- inputdataset          '      , @input_data_1 = n''      , @params = n'@seconddataset int'     , @seconddataset = 1   result sets ((plot nvarchar(max))); 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -