[求助]sql server 数据库连接出错!驱动程序不支持所需的属性!急死我了啊?
大家好啊!. r8 l4 c# ], `0 w# G4 v) a1 p3 Q
用以前用的是asp+access 现在改成 asp+sql server
- G/ m* c4 W9 T' H7 [& L老是出现:Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
; K$ G5 O8 h+ _; B# TODBC 驱动程序不支持所需的属性。: V6 O4 M2 e. V) r0 d
/jm/Inc/syscode.asp, 第 151 行4 H, _4 e' t2 p& F W( ~' t+ x1 l4 B0 _
我的程序是:1 r8 V. s4 ]% o) C* z% @
sub ShowVote()
5 D2 O6 r' a! X9 y( p2 Wdim sqlVote,rsVote,i
" `6 k# Y J7 P3 }" n' vsqlVote="select top 1 * from Vote where IsSelected=True" 113行; w# d4 N0 C# O t
Set rsVote= Server.CreateObject("ADODB.Recordset") 114行
, z* ]# D4 |" N+ t' x6 I- D2 n; yrsVote.open sqlVote,conn,1,1 151行
; E0 N- h9 ^0 J! fif rsVote.bof and rsVote.eof then
; c9 P, _* h n4 \" m response.Write " 没有任何调查"
" t$ Z2 ~" Q1 ^$ F. w* p9 [else/ O. y, F/ l. ]- S
response.write "<form name=';VoteForm'; method=';post'; action=';vote.asp'; target=';_blank';><td>"0 g2 E" Q ] o/ O5 O
response.write " " & rsVote("Title") & "<br>"
/ F: I* L9 D. i$ K$ ]& K if rsVote("VoteType")="Single" then
* U9 X6 G9 O, E# g; _+ q for i=1 to 8, _5 T Y) s/ }. z2 u# A
if trim(rsVote("Select" & i) & "")="" then exit for
. X; G" v" M+ X7 |* N response.Write "<input type=';radio'; name=';VoteOption'; value=';" & i & "';>" & rsVote("Select" & i) & "<br>" u" @% y9 C ?- w% z1 e1 p7 [6 l
next
( T2 d. A2 p( y& j5 P* R' s else
* a4 p6 x( O) F4 L+ Y for i=1 to 8
( g+ c1 ?$ c5 d( F& e if trim(rsVote("Select" & i) & "")="" then exit for+ S: u0 l* _9 `; d1 @! q3 y
response.Write "<input type=';checkbox'; name=';VoteOption'; value=';" & i & "';>" & rsVote("Select" & i) & "<br>". D( ~, ]6 }+ l. k5 ?
next8 W4 e6 K" Y* k2 Z# d
end if1 X6 K" q$ r1 @) P0 P
response.write "<br><input name=';VoteType'; type=';hidden';value=';" & rsVote("VoteType") & "';>"
( z% @, t( j+ \: N _$ Q* j* H response.write "<input name=';Action'; type=';hidden'; value=';Vote';>"
0 E+ s' F* ^' w! D response.write "<input name=';ID'; type=';hidden'; value=';" & rsVote("ID") & "';>"7 I5 a r; e6 d$ J" M" l" C5 z4 ^
response.write "<div align=';center';>"
5 M+ ~" G3 U6 m7 u7 C9 ~2 q response.write "<a href=';javascript:VoteForm.submit();';><img src=';images/voteSubmit.gif'; width=';52'; height=';18'; border=';0';></a> "
& q1 p$ u% r6 J. U. `; D5 `! I response.write "<a href=';Vote.asp?Action=Show'; target=';_blank';><img src=';images/voteView.gif'; width=';52'; height=';18'; border=';0';></a>"
7 y( [! q" @% Y% L8 U M& F response.write "</div></td></form>"
& Y: g; J8 c1 p8 Rend if
, }+ [" ?! w( _. r" ursVote.close! B( r) b; i" l
set rsVote=nothing2 g! }7 t- |, E7 P: F
end sub' X+ _5 L1 s7 r: M$ e. j
急死我了啊 !希望得到大家的指点 我是菜鸟啊!/ ~0 f6 E8 {# P. {: y9 w4 p' o% X
以前的好心朋友把表名 加上 [] 例如把113行 [vote] 但这次怎么不起作用了啊 !8 G# B/ B! y# _0 z; \
希望大家 帮我啊!!!我先谢过各位了啊 !
& z: q! [5 k+ g- m( z1 B% c; [8 k |