数据库无法连接,紧急救助,在线等!
网站在空间运行是正常的,可是我下载到本地以后运行出现的问题是:[size=3][color=DarkRed]Error occured:
Error: VIVI_HY_ADMIN\DataBase\%32#HYBTXda#%#ta.mdb DataBase is not exist ![/color][/size]
[color=Blue]发现是程序中这段的问题:[/color]
DBTruePath =DBPathStr
With Response
' 判断ACCRESS的数据库路径
If Lcase(DBSort)="accesss" and IsDebug = True Then
OKTemp=False
If IsFile(DBTruePath) = True Then
DBTruePath=DBTruePath
OKTemp=True
end if
If IsFile(AdminPathStr1&DBPathStr) = True Then
DBTruePath=AdminPathStr1&DBPathStr
OKTemp=True
end if
If IsFile(AdminPathStr2&DBPathStr) = True Then
DBTruePath=AdminPathStr2&DBPathStr
OKTemp=True
end if
If OKTemp = False Then
ShowError("<Li>Error: "&DBTruePath&"DataBase is not exist !</Li>")
Response.end
End If
End if
DBTruePath = Request.ServerVariables("APPL_PHYSICAL_PATH")&DBTruePath '取得物理路径
明明数据库是存在的,而且我可以直接打开的,不知道这段程序起什么作用,为什么在空间上是好的,而到了本机却会出问题呢?麻烦帮助一下,谢谢!
我怀疑是我的电脑缺少什么组件 实在弄不出来,哪位高手能帮个忙给看看啊?我把整站程序发给你 [em17] 终于找到原因了,是因为我在路径里用了汉字,结果变成了乱码,真是[em10] 谢谢了! VIVI_HY_ADMIN\DataBase\%32#HYBTXda#%#ta.mdb
哪有这样的物理地址
不太明白,上面那代码是怎么样联接数据库的。 上面的链接代码实际上是DBTruePath,定义的
在其他页面里,会有这个定义地址的
页:
[1]
