远程数据库(固定IP地址)连接,为什么频繁出现“连接失败”的情况?该如何处理

远程数据库(固定IP地址)连接,为什么频繁出现“连接失败”的情况?
我在DataModule中放了个ADOConnection1,连接设置如下:
Provider=SQLOLEDB.1;Password=123;Persist Security Info=True;User ID=cwuser;Initial Catalog=jxcw;Data Source=220.112.63.159;其中220.112.63.159为远程固定IP地址。
我在其他Form中放置了ADOQuery,并在属性中设置了ADOQuery->Connection = DataModule1->ADOConnection1。这样的话,ADOConnection1和ADOQuery应该一直处于连接状态把?
但实际情形是:用户说如果鼠标放那儿不动,过段时间就出现“连接失败”的提示,请问怎么解决啊?

------解决方案--------------------
CommandTimeout//指定执行一个数据操作命令的时间,在此时间段内操作失败即退出...
Specifies amount of time to attempt execution of a command.

__property int CommandTimeout = {read=GetCommandTimeout, write=SetCommandTimeout, default
=30};

Description

Use CommandTimeout to specify the amount of time, in seconds, that that can expire before an attempt to execute a command is considered unsuccessful. The default value is 30 seconds.

If a command successfully executed prior to the expiration of the seconds specified in CommandTimeout, this property has no effect. If execution of a command has not been successfully completed before the time has elapsed, the command is canceled.


ConnectionTimeout//确定尝试连接的时间,此时间内连接不成功即退出
Specifies amount of time to attempt a connection.

__property int ConnectionTimeout = {read=GetConnectionTimeout, write=SetConnectionTimeout, 
default=15}

Description

Use ConnectionTimeout to specify the amount of time, in seconds, that can expire before an attempt to make a connection is considered unsuccessful. The default value is 15 seconds.

If a connection is successfully made prior to the expiration of the seconds specified or the Cancel method is called, ConnectionTimeout has no effect. If the specified time expires and a connection has not been successfully made, the attempt is terminated and an exception is thrown.