I can do any .Net developm开发者_StackOverflow中文版ent using v2 of the CLR (.net 2, 3, 3.5) but when I try to use .Net 4.0 then I get an error saying that the version of IBM.Data.DB2 is too old / out of date (it's compiled for CLR v2).
Where would I find a .Net 4 version of IBM.Data.DB2?
IBM's policy towards providing updates is spelled out well in this forum thread.
To connect to DB2 via .Net 4.0, you will need to download and install the Fix Pack 4 for version 9.7 of the IBM Data Connect software. Version 9.7 supports both x86 and x64 OS's and the fix pack 4 supports .Net 4.0 framework.
You might want to take a gander at the following question. In my answer, I describe how I'm able to use DB2 drivers with vs2010 and clr 4:
Does .Net Framework 4.0 have features for connecting to DB2
精彩评论