Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Linking to DB
Message
General information
Forum:
Internet
Category:
Active Server Page
Title:
Miscellaneous
Thread ID:
01025956
Message ID:
01026023
Views:
14
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform