Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Linking to DB
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
Divers
Thread ID:
01025956
Message ID:
01026023
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Use this convention (assuming that the file is on the same dir as the asp page):
<%
Dim objConn, ConnStr
Dim dbLoc
Set objConn = Server.CreateObject("ADODB.connection")
dbLoc=server.mappath("agweb.dbc")
ConnStr= "Driver=Microsoft Visual Foxpro Driver; " + _
"UID=;SourceType=DBC;SourceDB=" + dbLoc
objConn.Open ConnStr
%>
Oh, make sure you can set the properties of the file to be read/write (some hosts will not let you do this.... Another thing is to put the dbc in its own subdirectory. Hope this helps!
Ricardo A. Parodi
eSolar, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform