MyDAC

TMyCommand.CommandTimeout Property

Used to specify the amount of time to attempt to execute a command.

Class

TMyCommand

Syntax

property CommandTimeout: integer default 0;

Remarks

Use the CommandTimeout property to specify the amount of time to attempt to execute a command.

Use CommandTimeout to specify the amount of time that expires before an attempt to execute a command is considered unsuccessful. Measured in seconds.

If a command executed successfully prior to the expiration of the seconds specified, CommandTimeout has no effect.

In the case of exceeding waiting time error CR_SERVER_LOST 'Lost connection to MySQL server during query' raises.

The default value is 0 (infinite).

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback