Log In
       Accounting Solutions
Good Old-Fashioned Quality of Service

Developer Software

Getting the
Db2 for i .NET Data Provider
Up and Running

  • Use Visual Studio IDE and c#, VB.NET or 3rd Party Languages to run Db2 for i SQL and stored procedures

  • Installing and Specifying Settings (Plumbing)(Call Us if you get stuck!)
  • the latest version of the .dll (from IBM i ACS Version - Build ID - 8250 and later) shows File Version (in Windows/assembly). is quite a bit older (Client Access 7.1) but works fine with old versions of Windows and IBM i OS combinations 
  • for a website project or a web app, installation of the .NET Data Provider is the only component group that is required on development workstations and the only component group required on the production web server (Windows Server 20xx running IIS). 

    So specify a custom install as shown in the picture when running the setup.exe. 
  • Select the features you want installed...
  • In other words, please do not take the default installation options when installing the ACS Windows Application Package on the Windows Server. By installing everything, the result can be that a number of extra things that you don't need get installed.   Not only is not installing everything considered best practice (lean and mean is the best path to a sturdy and fast Windows Server build), but it reduces unknowns or unused duplicates for your Windows Server admin(s) and reduces the chance you'll get saddled with roadblocks or prerequisite hurdles.

  • To enable drag and drop from Db2 for i physical files and external data structures into new OO DataSets at design time in Visual Studio, install the OLE DB Provider on the workstation also.  The OLE DB Provider is not needed at run time, so again, please do not install the OLE DB Provider on Windows Server for this purpose.  Of course we are assuming the developers aren't using Visual Studio to develop directly on Windows Server (LOL).  The OLE DB Provider is not required to dynamically create a list of columns in an OO DataSet at run time based on the columns in a Db2 for i SQL statement or Stored Procedure.  However, the OO DataSet is rather useful when programming the highest level of optimistic concurrency based on only a subset of columns...

  • Let us help you with Q&A, providing examples or custom development contracting
  • We can help you formulate strategy, train your resources or do the development

  • Get the full scoop in our new tutorial, training and source code bundle, Get Running - Tegratecs Code Package™

  • The SQL features available to use will be based on the target IBM i server OS level, so the latest and greatest stuff from IBM i 7.3 and 7.4 will be available.  Similarly the .dll works fine with i5/OS V5R4 through IBM i 7.2.

  • For compiling of the .NET project, the .dll will work with FW projects compiled all the way up to the latest, such as FW 4.8
  • In some cases, when targeting older versions of the FW and/or using old versions of the .dll and/or using the website project model, special web.config syntax may be required, please contact us.  Actually Chapter 6 of the Get Running - Tegratecs Code Package addresses everything you need to get beyond these challenges and includes source code for web.config and global.asax.  Occasionly we offer this chapter as a free download.

  • connection strings can take advantage of *LIBL technique (probably only with Db2 for i version)

  • Eliminate library and schema and testing-based hard-coding with library list technique!

    Please use the Contact Us phone number and extension for a no-cost, no-obligation discussion.

    See this article from MC Press for good details on setting the path and using *LIBL and system naming versus SQL naming

  • Here is a connection string example from a web.config file, based on a working production version, using the library list technique.  Remember to create your stored procedure and SQL PL with compatible syntax and options based on the system naming technique.  Long passwords with lower case can be used if the IBM i OS setting enables it...  A specially powered profile is not required for this. 

  • <connectionStrings>

  • <add name="strDotNetDB2iCnnName" connectionString="DataSource=; UserID=USRPRFNAME; Password=USRPRFPWD; Naming=System; LibraryList=LIBNAME1,LIBNAM2,LIBNAM3;"/>

  • </connectionStrings>

  • Use inline SQL or stored procedure calls

  • Use Equivalent Constructs as with Other Data Providers for .NET Environment
  • define methods for Db2 for i access at the same scope and with the same functional equivalent as with those for MS SQL Server
  • most adapters are supported
  • your choice of whether to use system column names, ALIAS names or SQL column names

  • populate and work with .NET FW OO DataSet objects that were created via drag and drop from Db2 for i file columns and subsets
  • we like to characterize DataSet objects as multi-occurrence data structures on steroids
  • for those really wanting column name verification and intellisense for column names at design/programming time, you can use these OO DataSets to qualify columns with the same name as the database column name (OO feature we got working with both Db2 for i and MSSQL).  Similarly, this prevents run-time errors due to typos in referencing the columns by hand-typed array-element name. 

one little component makes magic

IBM.Data.DB2.iSeries.dll illustration

Microsoft Visual Studio Professional 2022 SW box picture (for illustrative purposes only)

IBM i 7.4 Hot New Features Unveiled article by MC Press Online...

  • Let us help you with development services or to supply examples
  • We can help you formulate strategy, train your resources or do the development
see what's in the Get Running - Tegratecs Code Package

More Technical Details on the Data Provider versus the Get Running - Tegratecs Code Package:  Licensing of this data provider from IBM is included with any IBM ACS (Access Client Solutions) license.  The data provider is an IBM product that is not distributed in any of our Get Running - Tegratecs Code Package modules.  However, our Pro Intro Module product bundle includes a rather complete set of information on how to source the latest version of the provider, and how to install it on the Windows workstation (for use in Visual Studio) and for use from websites or web applications in the Windows IIS web server.  No changes are required on Windows Servers at your company in order for you to use our product or the data provider on your workstation.  Obviously at least one IBM i user profile is required for access to Db2 for i.  Connection string examples on this site show how to use the *LIBL technique...  Please note that download of the data provider and its setup.exe is done separately from the base ACS (Access Client Solutions) and is done by downloading the Windows Application Package (typically called something like  IBMiAccess_v1r1_WindowsAP_English) and running the setup.exe (we recommend running with a limited set of options).   

        go to the home page Top of Featured Services     go to next series page Next in Featured Services     Site Map     Switch to
Mobile View

You are at the web site of Tegratecs Development Corp.  Click here to go to the home page of this site...
Integrity, Innovation and ROI
Our contact information:
Tegratecs Development Corp.®
1320 Tower Road
Schaumburg, IL 60173
( please contact us or register or sign-in )
© 2012-2022