Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 ssis 2012任务ezapi_Visual Studio 2010_Ssis_Sql Server 2012_Ezapi - Fatal编程技术网

Visual studio 2010 ssis 2012任务ezapi

Visual studio 2010 ssis 2012任务ezapi,visual-studio-2010,ssis,sql-server-2012,ezapi,Visual Studio 2010,Ssis,Sql Server 2012,Ezapi,我正在尝试使用VS2010在SQL Server 2012上使用SSIS ezAPI库。我一直在看非常有用的博客和 bill fellows和ezAPI附带的示例。顺便说一句,我的最终目标是自动生成简单的验证平面填充输入到ADO.net目标 通过VS 2010应用程序自动映射 我遇到的问题是,在所有示例中,ezAPI和@billinkc都出现了无法解决的任务错误。我看到的错误日志 下面的帖子来自使用账单复制db示例 billfellows.blogspot.co.uk/2012/03/repli

我正在尝试使用VS2010在SQL Server 2012上使用SSIS ezAPI库。我一直在看非常有用的博客和 bill fellows和ezAPI附带的示例。顺便说一句,我的最终目标是自动生成简单的验证平面填充输入到ADO.net目标 通过VS 2010应用程序自动映射

我遇到的问题是,在所有示例中,ezAPI和@billinkc都出现了无法解决的任务错误。我看到的错误日志 下面的帖子来自使用账单复制db示例

billfellows.blogspot.co.uk/2012/03/replicate-tables-with-ssis-ezapi.html

InnerException:System.Runtime.InteropServices.COMException 帮助链接=#-1073614806 Message=由于错误0x80070057“参数不正确”,无法从任务“”的XML创建任务,请键入“{E3CFBEA8-1F48-40D8-91E1-2DEDC1EDDD56}”

我的怀疑是,由于每当我尝试使用bill或ezAPI示例创建数据流时都会出现此错误,因此我的特定构建连接配置存在一些问题

当我在.net项目中引用ezAPI.dll时,我引用的是managedDTS和DTSruntimewrapper(dll来自内存,因为我现在不在服务器上)。我必须确保 我使用.NET4.o框架(不是客户端)

所以我的问题是:我是否需要使用特定的顺序/方法/流程来进行配置,以便能够使用上述配置?我已经成功地创建了简单的包,其中包含成功运行的容器和变量 . 问题似乎与数据流和任务有关

任何指导都是值得的。我是否应该回归到SQL 2008 R2而不是2012,例如

非常感谢。
Richard

好的,Frank提到了这个问题,我使用的ezAPI版本与SQL server 2012不兼容,所以这个错误是这个兼容性问题的有用标志

所以你需要从头开始构建一个2012

要为2012创建兼容版本,您必须遵循以下步骤:

1/从codeplex库下载代码 导航到() 单击更改集86517链接() 然后下载代码和c#项目文件

2/建设项目。你可能会发现图书馆的问题,比尔回答了一个有用的问题() 现在可以了,我已经成功地创建和运行了数据流任务

谢谢你让我走上正轨


非常高兴。Richard

您是否检查了随SQL Server版本下载的ezAPI.dll的发行说明?并非所有版本的ezAPI都是稳定的。如果您使用的是SQL Server 2008 R2,根据以下链接,最后一个稳定的变更集是65381:非常感谢Frank,我有一种感觉,我得到了2010年12月12日的版本,该版本可能与2012 SQL Server不兼容。。?我有点慢,但最新的ezAPI条目显示2012年,但没有下载。你知道有没有。我试图从代码构建dll,但在获取正确的GAC库时遇到了麻烦。您是否在2012年使用过ezAPI?如果是,如何使用?理查德比尔非常感谢你能从中了解到这一点。你的博客是无价之宝。。理查德
Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException was unhandled
 HelpLink=#-1073614806
 Message=Cannot create a task from XML for task "", type ", {E3CFBEA8-1F48-40D8-91E1-   2DEDC1EDDD56}" due to error 0x80070057 "The parameter is incorrect.".

  Source={8975114C-7D4E-4B27-8FB9-1B7EC264B4A7}
  ErrorCode=-1073659898
  StackTrace:
   at Microsoft.SqlServer.Dts.Runtime.Executables.Add(String moniker)
   at Microsoft.SqlServer.SSIS.EzAPI.EzExecutable.CreateExecutable()
   at Microsoft.SqlServer.SSIS.EzAPI.EzExecutable..ctor(EzContainer parent)
   at Microsoft.SqlServer.SSIS.EzAPI.EzSrcPackage`2..ctor()
   at Microsoft.SqlServer.SSIS.EzAPI.EzSrcDestPackage`4..ctor()
   at EzAPIRecipies.ReplicateOMatic..ctor(String sourceServer, String sourceDatabase, String table, String destinationServer, String destinationDatabase) in c:\users\administrator\documents\visual studio 2010\Projects\testauto6\testauto6\replicate1.cs:line 28
   at EzAPIRecipies.Driver.ReplicateTables() in c:\users\administrator\documents\visual studio 2010\Projects\testauto6\testauto6\Program.cs:line 41
   at EzAPIRecipies.Driver.Main(String[] args) in c:\users\administrator\documents\visual studio 2010\Projects\testauto6\testauto6\Program.cs:line 23
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
   Source={8975114C-7D4E-4B27-8FB9-1B7EC264B4A7}
   ErrorCode=-1073659898
   StackTrace:
        at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutables100.Add(String bstrMoniker)
        at Microsoft.SqlServer.Dts.Runtime.Executables.Add(String moniker)
       InnerException: