我有一个烦人的问题。
我有一个SSIS脚本组件(数据流中的一个以避免混淆),它正在调用GET REST API。现在我是SSIS的人,但是已经将.net脚本拼凑在一起,有了一些有效的帮助,但是只有在设置了断点的情况下,即使它们已被禁用,也是如此。
一旦删除断点,就会出现以下错误。
在Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariables100.get_Item(对象索引)在Variables.get_AddressBookIdDownload()在ScriptMain.CreateNewOutputRows()在UserComponent.PrimeOutput(Int32输出,Int32 [] OutputID,PipelineBuffer []缓冲区,OutputNameMap OutputMap ),位于Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.PrimeOutput(Int32输出,Int32 [] outputID,PipelineBuffer []缓冲区)
有人(合理地)问.net代码是什么,以便进行故障排除...因此我将其粘贴在下面...包括所有字段映射,以防出现问题...
#region Namespaces
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
using System.Net;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using System.IO;
using System.Web.Script.Serialization;
#endregion
#region
[Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
public class ScriptMain : UserComponent
{
public override void PreExecute()
{
base.PreExecute();
}
public override void PostExecute()
{
base.PostExecute();
}
public override void CreateNewOutputRows()
{
//Get SSIS Variables
string apiUserName = Variables.APIUsername;
string apiPassword = Variables.APIPassword;
int campaignId = (int) Variables.Campaign;
//Set …Run Code Online (Sandbox Code Playgroud) 我们有一个linux(Ubuntu 14.10)生产服务器,以及我们想要在其上运行的许多R脚本,它们将从API或Web抓取中收集数据.然后,数据将写入CSV文件.
我的背景是SQL Server/Fortran,在生产环境方面应该遵循非常具体的最佳实践.一些突出的是: -
我的问题是:在我选择更新它们之前,如何确保与我的R代码关联的软件包保持一致且不变?