[ASP] ODBC wilt niet

Pagina: 1
Acties:

  • Jaspertje
  • Registratie: September 2001
  • Laatst online: 07-09 13:40

Jaspertje

Max & Milo.. lief

Topicstarter
Wij moeten voor school een mooi project maken... alles leuk en aardig.. alleen hebben we nu IIS geinstalleerd (we gaan ASP gebruiken en willen geen modules op apache installeren) en we krijgen de volgende foutmelding:

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/hotel/includes/database.asp, line 5


Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Page:
GET /hotel/reserveren/reserveren1.asp

Time:
Friday, May 24, 2002, 10:21:30 AM


Nu heb ik het thuis op mijn PWS geprobeerd en daar doet alles het wel gewoon.... de odbc koppeling klopt gewoon dus dat is het probleem niet.. en alles staat ook goed ingeteld.

de code van mn connectie nog ff:
code:
1
2
3
4
5
6
7
8
9
10
<%
'database connectie aanmaken
    dim con
    set con=server.createObject("adodb.connection")
    con.open ("dsn=hotel")
%>

Heeft iemand hier een oplossing voor?

[sub]heb al gezocht hier en op google maar niks dat ik kon gebruiken[/sub]

  • Feyd-Rautha
  • Registratie: November 2001
  • Laatst online: 02-08-2025
Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/hotel/includes/database.asp, line 5

Nu heb ik het thuis op mijn PWS geprobeerd en daar doet alles het wel gewoon.... de odbc koppeling klopt gewoon dus dat is het probleem niet.. en alles staat ook goed ingeteld.
Dat zal zijn omdat jij thuis een ODBC-DSN hebt gemaakt. Op school zal deze ODBC DSN niet liggen (configuratiescherm - ODBC)
code:
1
2
3
4
5
6
<%
'database connectie aanmaken
    dim con
    set con=server.createObject("adodb.connection")
    con.open ("dsn=hotel")
%>
het beste wat je kan doen is zelf uw connectiestring opgeven ipv een ODBC DSN aan te leggen...

dan doe je het volgende:
code:
1
2
3
 dim con
 set con = server.createobject("adodb.connection")
 con.open connstring

hoe je een connectiestring moet maken, moet je maar eens opzoeken in MSDN ofzo :)

I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. Where the fear has gone there will be nothing. Only I will remain.


  • Basszje
  • Registratie: Augustus 2000
  • Laatst online: 07-09 16:28

Basszje

Reisvaap!]

Ware het niet dat het nogal ranzig was om een aantal redenen ( dacht ik ) . maar ja als je niet de beschikking hebt over ODBC idd, dan moet het maar.

Beware of listening to the imposter; you are undone if you once forget that the fruits of the earth belong to us all, and the earth itself to nobody.


Verwijderd

UDL gebruiken, rechtstreeks koppelen!

  • Gert
  • Registratie: Juni 1999
  • Laatst online: 05-12-2025
't Enige wat zo'n UDL doet is een leuke connectie string maken. Ken je'm net zo goed copypasten, scheelt weer een handeling. :o

  • j_du_pee
  • Registratie: Maart 2000
  • Laatst online: 23-09-2024

j_du_pee

du pain, du vin, du pee

ff ODBC aanmaken idd, en meestal open ik met:

con.open "hotel"

ipv. "DSN=hotel", valt ook te proberen uiteraard..

kaart != map && bottel != fles
Wacht op antwoord


Verwijderd

Gert je hebt gelijk, alleen ik heb niet graag mijn password in mijn code staan. Is psychisch :)

  • whoami
  • Registratie: December 2000
  • Laatst online: 07-09 19:30
.

https://fgheysels.github.io/


  • Feyd-Rautha
  • Registratie: November 2001
  • Laatst online: 02-08-2025
Op vrijdag 24 mei 2002 16:35 schreef j_du_pee het volgende:
ff ODBC aanmaken idd, en meestal open ik met:

con.open "hotel"

ipv. "DSN=hotel", valt ook te proberen uiteraard..
als je je site wilt hosten via een of andere hostingbedrijf kun je best het gebruik maken van een connectiestring. Als dat hostingbedrijf geen ODBC-connecties toelaat, zit je wel met de gebakken peren natuurlijk :) . Met een connectiestring heb je nooit problemen :7

I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. Where the fear has gone there will be nothing. Only I will remain.


  • Jaspertje
  • Registratie: September 2001
  • Laatst online: 07-09 13:40

Jaspertje

Max & Milo.. lief

Topicstarter
we hebben het opgelost... we hebben een string gemaakt

tnx all
Pagina: 1