【问题标题】:Creating SQL Server 2008 R2 DTSX from C# - Exception from HRESULT: 0xC0048021从 C# 创建 SQL Server 2008 R2 DTSX - 来自 HRESULT 的异常:0xC0048021
【发布时间】:2011-09-26 20:01:41
【问题描述】:

我正在从 C# (.NET 4.0) 创建一个 dtsx,但是当我尝试将 OLEDB 源添加到数据流中并且是时候执行 ProvideComponentProperties 步骤时,我在 VS2010 中收到以下错误: HRESULT 异常:0xC0048021

这是我正在使用的代码的一部分:

//add SQL destination
IDTSComponentMetaData100 SQLDestination = dataflowTask.ComponentMetaDataCollection.New();
SQLDestination.ComponentClassID = "DTSAdapter.OleDbSource.1";
// Set the common properties            
SQLDestination.Name = "SQLDestination";
SQLDestination.Description = "SQL destination";
CManagedComponentWrapper SQLDestComponent = SQLDestination.Instantiate();
SQLDestComponent.ProvideComponentProperties(); // The error happens here

我正在使用 SQL Server 2008 R2 SP1 和 C# .NET Framework 4.0

【问题讨论】:

标签: sql-server sql-server-2008 c#-4.0 ssis


【解决方案1】:

对于 SQL2008 R2,您仅限于 VS2008 和 .NET 3.5。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多