SSIS Can not add OLEDB data source

Environment : Win 7 + SQL Server 2012 Evaluation + Visual Studio 2012 Express + iSeries Access V6R1
Target: Build a ETL flow between AS400 and MS SQL Server.

  1. Open Microsoft Visual Studio 2010 Shell, and create Integration service project.
  2. Select 'Data flow' tab, and drag 'OLE DB Source' to the data flow drawing pannel.
  3. Double click 'OLE DB Source', select New to create a OLE DB Connection.
  4. Double click 'ADO.NET', and the following error comes out:

Object reference not set to an instance of an object. (Microsoft.DataTransformationServices.Design)

After searching lot of blog and articles, I still can not find out any good solution for this error. Finally, I try to use 'System Event log' to figure out is there any good clue for this issue.

And I found out that there are some DistributedCOM errors. And I try to add the OLE DB connection again, to figure out this error is generated by my Visual Studio 2010. Bingo!! My guess was right!

Then I was trying to focus on these DistributedCOM error.

The error was something like this:

应用程序-特定 权限设置并未从地址 LocalHost(使用 LRPC) 使用 CLSID
{FDC3723D-1588-4BA3-92D4-42C430735D7D} 和 APPID
{83B33982-693D-4824-B42E-7196AE61BB05} 向用户 CNSDECELI10003T\User SID
(S-1-5-21-616135212-3477991215-2793478683-1000)授予对 COM 服务器应用程序的 本地 激活
权限。此安全权限可以使用组件服务管理工具进行修改。

It must be an error related to the security access of my current account (CNSDECELI10003T\User).

So I used Baidu to find out does any one got the related problem. And I found the following post:
http://blog.csdn.net/litepos/article/details/6340500

Great!!

Then I try to following the instruction in this post.

  1. Search {FDC3723D-1588-4BA3-92D4-42C430735D7D} in registry. This CLSID is map to Microsoft.SqlServer.Dts.Server.DtsServer, and its AppId is {83B33982-693D-4824-B42E-7196AE61BB05}
  2. Search {83B33982-693D-4824-B42E-7196AE61BB05} in registry again, and this App is 'Microsoft SQL Server Integration Services 11.0'
  3. Open 'Control Panel > Management Tools > COM Service'
  4. Select Node : 'Com Service > My Computer > DCOM Configuration > Microsoft SQL Server Integration Services 11.0'
  5. Right click, select 'Property', select 'Security' tab, click 'Edit' in 'Startup and Activate'
  6. Add my current user 'CNSDECELI10003T\User' to the list, and tick 'Local Startup' & 'Local Activate'.
  7. Reopen VS 2010, and double click OLE DB Source, there is no error prompted any more.

[End]

你可能感兴趣的:(SSIS Can not add OLEDB data source)