Avatar billede peterkopi Nybegynder
19. maj 2005 - 11:10 Der er 10 kommentarer og
2 løsninger

Database conn, Provider error '80040e4d'

Nogen der kan hjælpe mig med at connecte til db? Jeg får fejlen:

Provider error '80040e4d'

Authentication failed.

D:\WWW\THOMASVILHELM.DK\PUBLIC_HTML\HOME\../includes/connect.asp, line 6

connect.asp:

<%
' Database forbindelse
Dim ConnectString, conn
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" '& Server.MapPath("../db/db.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnectString
%>
Avatar billede terry Ekspert
19. maj 2005 - 12:12 #1
Looks like a little error

ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("../db/db.mdb")
Avatar billede terry Ekspert
19. maj 2005 - 12:13 #2
'& !!!!
Avatar billede terry Ekspert
19. maj 2005 - 12:13 #3
.
Avatar billede peterkopi Nybegynder
19. maj 2005 - 12:35 #4
Still error!

Microsoft JET Database Engine error '80004005'

'd:\www\thomasvilhelm.dk\public_html\db\db.mdb' 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.

D:\WWW\THOMASVILHELM.DK\PUBLIC_HTML\HOME\../includes/connect.asp, line 6
Avatar billede terry Ekspert
19. maj 2005 - 13:03 #5
Authentication failed.

Do you have a password on the dB?

Try looking at this
http://dbforums.com/t379342.html
Avatar billede terry Ekspert
19. maj 2005 - 13:05 #6
Avatar billede terry Ekspert
19. maj 2005 - 13:07 #7
are you sure the path is correct?
Avatar billede peterkopi Nybegynder
19. maj 2005 - 16:22 #8
No I'm not sure that I've got the path right. It must be http://(root)db/db.mdb
Avatar billede peterkopi Nybegynder
19. maj 2005 - 17:22 #9
Reg. passwords on the db: Yes, we've got 1 admin/webmaster and 2 editors
Avatar billede terry Ekspert
19. maj 2005 - 19:44 #10
I think you have a better chance of getting help on this question in ASP category. I am sur ethe problem is the path to your database. I have a feeling you are trying to connect from your local PC to a database on a remote web server and I have no idea how to do that
Avatar billede peterkopi Nybegynder
19. maj 2005 - 19:51 #11
Okay, terry - and thank you for your efforts :-)
Avatar billede terry Ekspert
19. maj 2005 - 20:01 #12
thanks to you too

God aften
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester