Written by

Question Zhang Fatong · Nov 18, 2021

How to switch DSN in business operations?

I want to switch between different DSNs in business operations to query different servers, but the DO ..Adapter.DSNSet("DSNName") code will report a 15-second connection timeout error when switching DSNs. What should I do?

Product version: IRIS 2020.1

Comments

Zhang Fatong  Nov 19, 2021 to Eduard Lebedyuk

EnsLib.SQL.OutboundAdapter

0
Eduard Lebedyuk  Nov 19, 2021 to Zhang Fatong

Have you tried connecting to this second DSN right from the start?

0
Zhang Fatong  Nov 21, 2021 to Eduard Lebedyuk

Yes, I tried.
Both DSNs can be used normally, but I have to judge in the program to choose a different DSN

0