connstr = "DBQ=" + server.mappath("yourdatabase") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" % q+ w+ O2 ?* E7 S/ j2 x$ e/ u* y set conn=server.createobject("ADODB.CONNECTION")- u' L W( M' C
if err.number<>0 then ! E2 o J8 v! J# ~: K. X5 [$ A err.clear/ R4 z+ q: W% ?$ u. R) X5 v- \
set conn=nothing5 j: O/ l0 j* X' R
response.write "数据库连接出错!" ( D; ?1 E( S4 | O Response.End8 x% }8 w5 t8 V5 L6 p2 }0 p2 q& y
else, O- T) o4 L* Z) m; Q$ c
conn.open connstr 5 t$ ^1 X& L- ^3 m- f' | if err then . u. G# U* ~5 u9 K( m5 Q9 G+ A' V& t+ S
err.clear 6 Y1 `; R5 ^- P$ a/ A4 T set conn=nothing : V/ n& G, g2 a' b" u response.write "数据库连接出错!" 0 I E4 {) k! {; E. R" S$ p Response.End 1 @; s9 {& ^ D% _2 Z @
end if * W( K2 T$ W0 O end if w# I% i2 I E U/ L+ _5 e
看错了你的问题。有可能是你的server.mappath设置的问题。# Z7 Z( f- n& c( Y" \
! n z# h6 i% [' u5 u7 R' H- F6 ]6 f
[ Last edited by Ward on 2004-11-24 at 05:33 PM ]
错误信息是: ' U# a4 M. ]. F! w7 p$ g, }1 m( AADODB.Connection.1 error '800a0bb9' 1 B% D9 h2 ^5 n 7 k/ S' {% O8 B f9 wThe application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another. 3 g0 o; o! G; Q1 ~
! l' o0 {' ^2 S. B! S7 D
我也觉得是不支持ACCESS,不过租前曾专门电话问过,说可以啊。