标题:APPLICATION存放连接有什么好处没
取消只看楼主
caiyakang
Rank: 2
等 级:新手上路
威 望:5
帖 子:2111
专家分:0
注 册:2005-3-24
 问题点数:0 回复次数:0 
APPLICATION存放连接有什么好处没
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
dbPath = "DBQ=" & Server.Mappath("onlinetest.mdb")
dbConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; " & dbPath
Set Application("Conn") = Server.CreateObject ("ADODB.Connection")
Application("Conn").Open dbConnectionString
End Sub
Sub Application_OnEnd
Application("Conn").Close
Set Application("Conn") = Nothing
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
End Sub
</SCRIPT>
这有什么好处吗!!!
搜索更多相关主题的帖子: APPLICATION 
2005-10-30 12:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-31916-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.476772 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved