1

With .NET classic I used to have a connectionstring like this (to connect to db2 instance) :

DataSource=10.10.1.1;UserID=MyUser;Password=MyPWD;LibraryList=LIB1,*USRLIBL;Naming=System;

But this connectionstring doesn't work anymore with .NET CORE.

I've found something like :

server=10.10.1.1:446;database=TheDB;user id=MyUser;password=MyPWD;

But I don't find anything for LibraryList. What is the equivalent ?

Tim
  • 1,749
  • 3
  • 24
  • 48
  • Does this solve your issue? https://stackoverflow.com/questions/54195417/ibm-db2-core-connection-string-for-asp-net-core-2-1-and-microsoft-enterprise-li – Scott Mildenberger Jul 11 '19 at 18:30
  • it seems it's the naming=system that is not available, how to set naming system ? https://stackoverflow.com/questions/19715889/ibm-net-data-provider-connection-string-issue-with-library-list – Tim Jul 12 '19 at 07:26

1 Answers1

0

SystemNaming seems to be available only via code, not in connectionstring :

    using (var db = new DB2Connection(ConnectionStrings))
    {
        db.SystemNaming = true;
    }

Ref : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.swg.im.dbclient.adonet.ref.doc/doc/r0060653.html

Tim
  • 1,749
  • 3
  • 24
  • 48