Export (0) Print
Expand All

Creating a Project in Visual Studio Using the Managed Provider for DB2

You can create a project in Microsoft® Visual Studio® .NET using the Managed Provider for DB2 in the same way you would create any other project. However, while the Managed Provider for DB2 is compatible with versions 1.0 and 1.1 of the .NET Framework, interoperability between the two versions of .NET Framework is limited. The following table describes the different versions of Visual Studio and the .NET Framework you may have installed on your system, and the effects it may have on any new projects you create with the Managed Provider for DB2.

Visual Studio version installed.NET Framework version installedNew projects using the Managed Provider for DB2
20031.1Reference .NET Framework version 1.1 and work as described.
2002 and 20031.0 and 1.1Projects build in Visual Studio 2002 reference the incorrect .NET Frameworks version.

Projects built in Visual Studio 2003 reference .NET Framework 1.1 and function as expected.

When only Visual Studio 2003 and .NET Framework 1.1 are installed, newly created projects function as expected, and reference .NET Framework version 1.1. However, conflicts occur when both Visual Studio 2002 and Visual Studio 2003 or both .NET Framework 1.0 and 1.1 are installed.

Specifically, projects created in Visual Studio 2003 function as expected and reference .NET Framework version 1.1. In contrast, projects created in Visual Studio 2002 only function as expected after redirecting your project to .NET Framework 1.1.

To redirect your Visual Studio 2002 project to .NET Framework version 1.1

  1. Remove the version 1.0 references to System, System.Data, and System.Xml.
  2. Replace these references with version 1.1 references to System, System.Data, and System.Xml.

    You can browse for the location of these references at <drive>:\Windows\Microsoft.NET\Framework\v1.1.4322\.

See Also

Using the Managed Provider for DB2

To download updated Host Integration Server 2004 Help from www.microsoft.com, go to http://go.microsoft.com/fwlink/?linkid=29507.

Copyright © 2004 Microsoft Corporation.
All rights reserved.
Show:
© 2015 Microsoft