If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > help for error 80040e21

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-03, 01:33
xincan xincan is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Unhappy help for error 80040e21

when i opened my website,i encountered this error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested propertiesӣ
/index.asp£¬line 7


but while i uploades all the same pages to an other server,it can display normally without any errors. it also passed the test on my own computer with iis5.0



it made me crazy. please give me a hand.

here is some codes:
Code:
=================conn.asp========================================
<%
StrSQL="DBQ="+server.mappath("admin/psnews.asp")+";DRIVER={Microsoft Access Driver (*.mdb)};"

set conn=server.createobject("ADODB.CONNECTION")
conn.open StrSQL
%>

=================index.asp========================================


<% Response.Expires = 0 %>

<!--#include file=conn.asp -->
<%
set rs=server.CreateObject("ADODB.RecordSet")
source="select * from BigClass"
rs.Open source,conn,1,1

set rs6=server.CreateObject("ADODB.RecordSet")   '
source6="select * from bulletin order by update2 DESC"
rs6.Open source6,conn,1,1


set rs5=server.CreateObject("ADODB.RecordSet")   
source5="select * from smallclass where bigclassid=36 order by smallclassID DESC"
rs5.Open source5,conn,1,1




 set rs7=server.CreateObject("ADODB.RecordSet")  
 source7="select top 5 * from news where smallclassid=66 order by newsid DESC"
 rs7.Open source7,conn,1,1

 set rs8=server.CreateObject("ADODB.RecordSet")  
 source8="select top 5 * from news where smallclassid=64 order by newsid DESC"
 rs8.Open source8,conn,1,1
%>

.........


£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
* psnews.asp is an access file. In order to prevent database from being downloaded ,I changed it's extension.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On