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 > ASP ADO Error - ODBC Connection Failed - Using SQL Server Linked Tables In Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-03, 15:15
jesusfreak jesusfreak is offline
Registered User
 
Join Date: Feb 2003
Posts: 6
Red face ASP ADO Error - ODBC Connection Failed - Using SQL Server Linked Tables In Access

I am using SQL Server 2000 sp3. The mdac version on the web server is 2.7 I am linking one table from sql server into an Access 2000 Database using an ODBC connection from a system DSN. There is a query that joins the data from the sql server table onto some jet tables. Everything runs correctly from within Access. Only when I try and select * from my access query within ASP do I get the

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'MyDSN' failed.

I have searched numerous forums and have found this to be a re-occuring issue but have never found an answer. I have done this before but I just cant figure out what is wrong this time

Any help would be appreciated
Reply With Quote
  #2 (permalink)  
Old 02-11-03, 09:35
pal19 pal19 is offline
Registered User
 
Join Date: Feb 2003
Location: @ home
Posts: 163
Re: ASP ADO Error - ODBC Connection Failed - Using SQL Server Linked Tables In Access

The internet user for you site (or the one you use) have permissions of datareader ins SQL Server?

______________
Paulo Gonçalves
Reply With Quote
  #3 (permalink)  
Old 02-11-03, 17:08
jesusfreak jesusfreak is offline
Registered User
 
Join Date: Feb 2003
Posts: 6
I have been down that road too. I have tried SQL Server and Windows Authentication. I used administrator for IIS and for the connection info for the ODBC System Datasource. I turned on auditing on the sql server for logging all logins and it appears to me that the request for the login never even happens so I don't think its a permissions issue on the sql server. I checked the permission on the access database and the folder that it is in. I have tried running it on Developer and Enterprise editions of sql server, professional and windows 2000 server, the web site on one machine and vice versa, the web server and sql server on the same machines. It wouldn’t surprise me if its something in SP3 or MDAC 2.7 which is on both of my development machines and the production machines.

If someone could tell me how to reverse MDAC perhaps I could track it back that way.
Reply With Quote
  #4 (permalink)  
Old 02-12-03, 05:08
pal19 pal19 is offline
Registered User
 
Join Date: Feb 2003
Location: @ home
Posts: 163
Do you have CrystalReports v.8 or earlier installed?
Reply With Quote
  #5 (permalink)  
Old 02-12-03, 09:18
jesusfreak jesusfreak is offline
Registered User
 
Join Date: Feb 2003
Posts: 6
Nope
Reply With Quote
  #6 (permalink)  
Old 02-12-03, 09:34
pal19 pal19 is offline
Registered User
 
Join Date: Feb 2003
Location: @ home
Posts: 163
Do you close the connection at the end of the asp?
Because it looks like that he needs to expire the session to continuing working.
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