I faced the same issue where the first connection attempt or a connection after a longer period would immediately time out. From my observations, the first connection attempt always takes significantly more time. Increasing the timeout, pool size and pooling in the connection string helped in my case. I added these parameters: Timeout=60;Command Timeout=60;Pooling=true;MinPoolSize=1;MaxPoolSize=200