Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 12th, 2003, 12:02 AM
kennethwwc kennethwwc is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 kennethwwc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kennethwwc
Unhappy Microsoft OLE DB Provider for ODBC Drivers error'80004005'

HELP!!!

I faced a problem that is cannot access to Microsoft ACCESS database. I had build up the DSN with the name = Shermont and actual name of .MDB file is Shermont.mdb, I had follow the hosting instruction which is create a new folder named “database” and put same level with the HTML folder and paste my Ms ACCESS database into the folder, but still not work.

This is the code I used to access to the database:
Dim con, rs, str
set con=server.CreateObject("ADODB.CONNECTION")
con.Open "Shermont"
set rs=server.CreateObject("ADODB.RECORDSET")
rs.ActiveConnection=con
str="SQL statement"
rs.open str
…….
rs.close
con.close

Error type:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

THANK YOU VERY MUCH.

Reply With Quote
  #2  
Old July 29th, 2003, 09:52 AM
miro miro is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: cairo
Posts: 3 miro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try going back to the system and user DSN and select another
MS Access Driver

after finish doing so .. there is abutton by which you can test the connection to the Data Source if the test went good

then you ave a problem with your code or web-server configuration


hope that helps

Reply With Quote
  #3  
Old July 31st, 2003, 04:32 AM
kennethwwc kennethwwc is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 kennethwwc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kennethwwc
I can run on my own pc . i think the problem is the web-server configuration . I just want to know that any other way to connect to my database by not go through the web-server dsn ?i has also tried the server.mappath("") method, its still not work.

anyway, thanks for your help, miro

Reply With Quote
  #4  
Old July 31st, 2003, 10:06 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yes - you can connect to any database using a DSN-less connection. They are quicker and easier to setup than a DSN conn. And great for when you don't have access to the server.

4guys has some great articles on dsn-less connections.

See my post here (the last one) for the URL's to their articles.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Microsoft OLE DB Provider for ODBC Drivers error'80004005'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT