connstr = "DBQ=" + server.mappath("yourdatabase") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" $ ?8 @' ~( g V4 T1 R* `0 Q set conn=server.createobject("ADODB.CONNECTION") 4 |1 G! N. [3 e; e if err.number<>0 then + q; ~- Q+ c8 v2 J( b( p. K' i
err.clear/ @6 e8 `, @5 l' }0 }% _
set conn=nothing5 F3 T! z7 W" M" A0 w, ^9 s
response.write "数据库连接出错!") W ~! w& R% w5 S
Response.End - a7 F9 ~9 l* }1 ^* e else6 a- C, M: u2 R
conn.open connstr 4 x# s. g3 Q1 p# k D5 v if err then 7 F. f- o/ b& o0 C err.clear & T, \ Y8 R# E1 c+ z. }$ C set conn=nothing( } B' U+ i" Q$ A/ \
response.write "数据库连接出错!"7 _. |! j- a) t+ m
Response.End % \2 H+ z8 ?* N4 y end if2 t. w4 t3 d6 I+ V" K+ y. C
end if7 V$ Q3 R5 D/ i3 ^2 @
看错了你的问题。有可能是你的server.mappath设置的问题。* }0 f R* v. ^6 Q
8 q1 e* X5 L! ]
[ Last edited by Ward on 2004-11-24 at 05:33 PM ]
错误信息是: + L! r) v; P3 c% X" I, y) ^ADODB.Connection.1 error '800a0bb9' ! r7 y0 V$ v* h3 d! V; x0 @: t* i r2 {# b' m
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another. / L% j/ _$ l5 f
7 B+ |- T+ F, _6 V: J$ d& Z% L
我也觉得是不支持ACCESS,不过租前曾专门电话问过,说可以啊。