带有R存储过程的SQL Server [英] SQL Server with R Stored Procedure

查看:116
本文介绍了带有R存储过程的SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好, 

我写了一个R函数并将其包装在一个存储过程中。当我尝试执行存储过程时,我收到以下错误:

I've written an R function and wrapped it in a Stored Procedure. When I attempted to execute the stored procedure I received the following error(s):

消息39004,级别16,状态20,行0

执行带有HRESULT 0x80004004的'sp_execute_external_script'时出现'R'脚本错误。

消息39019,等级16,状态2,行0

发生外部脚本错误:

错误:输出数据集必须是数据框类型;考虑使用data.frame()来转换它。

推荐答案

没有关于脚本/程序的更多信息,你试图运行它很难说究竟出了什么问题。我猜你的问题类似于这个Stackoverflow问题(https://stackoverflow.com/questions/37996694/t-sql-with-external-script-execution-for-in-database-r-integration).

Without more information on the script / procedure you're trying to run it's hard to say exactly what is wrong. I'm guessing your problem is similar to this Stackoverflow question (https://stackoverflow.com/questions/37996694/t-sql-with-external-script-execution-for-in-database-r-integration).

Bob


这篇关于带有R存储过程的SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆