正在加载图片...
应用中应避免这种情况发生 Connectiontimeout属性在连接关闭时是可读写的 而在连接对象启动时其属性是只读的,故 ConnectiontimeOut的属性设置必须在连接前或取消 连接后。 Connectiontimeout属性的语法格式如下: Connection. ConnectiontimeOut=seconds (5) Commandtimeout属性 Commandtimeout属性用于设定连接对象的 Execute方法运行的最长等待时间,缺省值为30秒。 如果希望没有时间限制,则可以将其设置为0 在运行时 Commandtimeout属性是可读写的,而运行中 其属性是只读的,故其属性的设置必须在 Execute应用中应避免这种情况发生。 ConnectionTimeOut属性在连接关闭时是可读写的, 而在连接对象启动时其属性是只读的 , 故 ConnectionTimeOut的属性设置必须在连接前或取消 连接后。ConnectionTimeOut属性的语法格式如下: Connection.ConnectionTimeOut=seconds (5)CommandTimeOut属性 CommandTimeOut 属 性 用 于 设 定 连 接 对 象 的 Execute方法运行的最长等待时间,缺省值为30秒。 如果希望没有时间限制,则可以将其设置为0。 在运行时CommandTimeOut属性是可读写的,而运行中 其属性是只读的,故其属性的设置必须在Execute
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有