以文本方式查看主题 - 蓝色快车PB俱乐部论坛 (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspindex.asp) -- PowerBuilder MIS编程 (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspbbs.asp?boardid=1) ---- 如果我的服务器关掉了,程序要老长时间才提示连接失败,如何缩短时间? (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspdispbbs.asp?boardid=1&rootid=1852&id=1898) |
-- 作者:leader -- 发布时间:2004/6/7 13:57:59 -- 如果我的服务器关掉了,程序要老长时间才提示连接失败,如何缩短时间? 如果我的服务器关掉了,程序要老长时间才提示连接失败,如何缩短时间? SQLCA.DBMS = "MSS Microsoft SQL Server 6.x" SQLCA.Database = "aaaaa" SQLCA.LogPass = "123" SQLCA.ServerName =profilestring("aaaa.ini","database","servername","") SQLCA.LogId = "123" SQLCA.AutoCommit = False SQLCA.DBParm = "" connect; if sqlca.sqlcode<>0 then messagebox("提示","数据库连接失败!") end if |
-- 作者:cmaboy -- 发布时间:2004/6/15 19:03:41 -- 你可以把你的数据库连接的时间设置的短一些 |
"> |