I would like keep connection for all time,
I have to set timeout = 0 ?
Infinity timeout TMyConnection
The TMyConnection.ConnectionTimeout property is used to specify the amount of time to attempt to ESTABLISH a connection. If you don't use the Disconnected mode then connection by default is kept and is not disconncted after any operation executing. You can find more detailed information about the Disconnected mode in the MyDAC help.