asp access conn文件,支持主域名,2级域名,n级目录

来源:互联网 发布:微信精灵软件 编辑:程序博客网 时间:2024/05/16 12:05

Dim comp_user,comp_lvl,comp_userid,filepath
     On Error Resume next
        Set conn=server.CreateObject("adodb.connection")
    
  
  rootpath=request.serverVariables("APPL_PHYSICAL_PATH")
  
        dpath=rootpath&"/dataware/dataware.mdb"
        strconn="provider=microsoft.jet.oledb.4.0;data source="&dpath

     conn.open strconn
     If Err Then
        response.write "Err"&Err.description
     Err.clear
     response.End
     End if 

原创粉丝点击