<% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="91"
	dir="../err.asp" 
  %>
 <!--#include file="../../../conn/conn.asp"-->
 <!--#include file="../../../inc/filesystem.asp"--> 
 <!--#include file="../../rolecheck.asp"-->
 <%
 

Sub CloseConn()

	Conn.close
	set Conn=nothing
End sub


dim connstrItem
dim dbItem
dim connItem
dbItem="database/#Item.mdb"       
 on error resume next
Set connItem = Server.CreateObject("ADODB.Connection")
connstrItem="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(dbItem)
connItem.Open connstrItem
If Err Then
   err.Clear
   Set ConnItem = Nothing
   Response.Write "采集数据库连接出错，请检查连接字串。"
   Response.End
End If

Sub CloseConnItem()
    on error resume next
   ConnItem.close
   Set ConnItem=nothing
End sub
%>

