数据库连接,下面是连接代码,请问有有没有数据库访问结束代码?有没有释放资源?? 等待
<%mymdbpath="adminsoft/conndb/easydone2005_MDB.mdb"dimconnsubconned()dimpath,p1Provid...
<%
mymdbpath ="adminsoft/conndb/easydone2005_MDB.mdb"
dim conn
sub conned()
dim path,p1
Provider = "Provider=Microsoft.Jet.OLEDB.4.0;"
Path = "Data Source=" & Server.MapPath(mymdbpath)
Set conn= Server.CreateObject("ADODB.Connection")
p1=Provider&Path
conn.Open p1
end sub
%> 展开
mymdbpath ="adminsoft/conndb/easydone2005_MDB.mdb"
dim conn
sub conned()
dim path,p1
Provider = "Provider=Microsoft.Jet.OLEDB.4.0;"
Path = "Data Source=" & Server.MapPath(mymdbpath)
Set conn= Server.CreateObject("ADODB.Connection")
p1=Provider&Path
conn.Open p1
end sub
%> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询