Global Data Management Forum

Data Management Global

A hub for collaboration, learning, networking, and cultural exchange, and contributing to positive global engagement

 View Only

DB2 IBMi EF core scaffold error SQL30061N

  • 1.  DB2 IBMi EF core scaffold error SQL30061N

    Posted 08/26/22 08:46 AM
    When scaffolding using ef core like this:
    dotnet ef dbcontext scaffold "server=server:446;uid=user;pwd=pwd;database=database" IBM.EntityFrameworkCore -o Scaffold --schema "database" -t tablea -f

    i receive the following error ERROR [08004] [IBM] SQL30061N The database alias or database name "database                  " was not found at the remote node. SQLSTATE=08004. I can connect correctly using DBBeaver.

    What i find very strange in the error message is the not trimmed spaces on the right on the database name "database           ".

    Can anyone help? 

    Thanks

    ------------------------------
    Xavier Klausener
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers