Hi Philip,
Since original poster provided us with entertainment of multiple posts for the same topic, you will find in another post from the same author, that database server is AS400. My first thought was lack of activation, but I don't know anything about AS400 to advise further.
------------------------------
Jan Nelken
Db2 (LUW) DBA
Open for job
Katowice or Krakow
+48 783 109 863
------------------------------
Original Message:
Sent: Wed May 14, 2025 05:30 PM
From: Philip Nelson
Subject: Slow first connection to db2 in c#
Has the database in question been activated (assuming this is LUW) ?
Original Message:
Sent: 5/14/2025 12:20:00 PM
From: Marco Ayala
Subject: Slow first connection to db2 in c#
because the first connection to db2 took more than 10, 20 at 30 seconds.
I am doing a proof of concept because my system takes a long time to connect to the database with my .net code and the IBM.Data.Db2 library (version 7.0.0.400) I need to know if I should configure something additional or at source code level.
take as reference this code with the following link
https://www.ibm.com/docs/es/db2w-as-a-service?topic=programmatically-net
connection string is: Database=XXXXX;Server=100.100.100.100:446;UID=XXXXX;PWD=XXXX
attached evidence

------------------------------
Marco Ayala
------------------------------