Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 18th, 2003, 07:19 PM
matenia matenia is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 matenia 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 matenia Send a message via Yahoo to matenia
ADODB.Connection.1 error '80004005'

I hage been trying for ages . . . this code will not work .. the directory is correct .. i think that the connection string is incorrect . ..

can someone help me out
This is the error

ADODB.Connection.1 error '80004005'

SQLState: IM002
Native Error Code: 0
[INTERSOLV][ODBC lib] Data source name not found and no default driver specified


include/constring.asp, line 9
---------------------------------------------------------------------------------
this is my code ..
---------------------------------------------------------------------------------
<%

Dim Conn 'Connection object
Dim AdminName 'Administration username
Dim AdminPassword 'Administration password
Dim ImageFolderName

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("fpdb/gallery.mdb")

AdminName = "admin"
AdminPassword = "admin"
ImageFolderName = "images"

'Subroutine to check admin login details
function findUser(UserID, Password)


if TRIM(UserID)=AdminName AND TRIM(Password)=AdminPassword then
Session("UserID") = TRIM(UserID)
Session("Password") = TRIM(Password)

findUser = true
ELSE
findUser=false
message = "Sorry, Incorrect username / password"


END IF


end function
%>
----------------------------------------------------------------------------------
you can msg me on msn at URL

THANK YOU ANYONE!!!

Reply With Quote
  #2  
Old June 19th, 2003, 04:53 PM
matenia matenia is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 matenia 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 matenia Send a message via Yahoo to matenia
i still want an answer . . . is there really no one that knows what is wrong with the code???

Reply With Quote
  #3  
Old August 20th, 2003, 04:25 PM
mmormann mmormann is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 mmormann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
connection with access

Instead of Provider=... use

Driver={Microsoft Access Driver (*.MDB)};

Reply With Quote
  #4  
Old August 20th, 2003, 07:14 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,719 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 50 m 18 sec
Reputation Power: 688
What server OS? The error you listed may be caused if you are trying to put an Access db on a *nix box using chilisoft for asp.

If you're on a windows server you may need to update your MDAC, you can download the latest from http://www.microsoft.com/data

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > ADODB.Connection.1 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 2 hosted by Hostway