Db2

 View Only
Expand all | Collapse all

How to connect to I-Series from windows using IBM Data DB2 Core drivers

  • 1.  How to connect to I-Series from windows using IBM Data DB2 Core drivers

    Posted Wed April 14, 2021 08:57 PM

    I am trying to connect to DB2 on an IBM I Series from dotnet core 3.1 from a windows.

    My test application is a simple .NET Core 3.1 Console app with the IBM.Data.DB2.Core v3.1.0.400 nuget package. It has the simple DB2Connection/DB2Command code to open the connection.

    I get error trying to connect. The same code works using the IBM .Net Framework drivers.

    What is the trick?





    #Db2
    #Db2forLUW
    #Support
    #SupportMigration


  • 2.  RE: How to connect to I-Series from windows using IBM Data DB2 Core drivers

    Posted Tue May 18, 2021 05:39 PM

    I don't know if you already solved it, but the trick is to add

    Server=<yourDb2connectServer:port>

    in your connection string.

    If you use the DB2ConnectionStringBuilder object, you can set the property "Server" with that value.





    #Db2
    #Db2forLUW
    #Support
    #SupportMigration