我正在从C# (HRESULT4.0)创建dtsx,但是当我尝试将OLEDB Source添加到数据流中,是时候执行ProvideComponentProperties步骤时,我在VS2010中收到以下错误: Exception from 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 Server2008 R2 SP1和C# .NET Framework4.0
发布于 2011-09-27 05:02:20
对于SQL2008 R2,您只能使用VS2008和.NET 3.5。
https://stackoverflow.com/questions/7560648
复制相似问题