I am using IBM.Data.DB2.Core to connect to DB2 database from .Net core 2.0
Below is the code:
using (DB2Connection connection = new DB2Connection(conn))
{
connection.Open();//Below error at this line
}
Message "ERROR [42705] [IBM] SQL1013N The database alias name or database name \"\" could not be found. SQLSTATE=42705\r\n[IBM] SQL1013N The database alias name or database name \"\" could not be found. SQLSTATE=42705\r\n" string
at IBM.Data.DB2.Core.DB2Connection.get_ServerVersion()
at IBM.Data.DB2.Core.DB2Connection.get_ServerBuildVersion()
at DB2test.Program.Main(String[] args) in C:\DB2test\Program.cs:line 85
Any help is highly appreciated.
Thanks.