Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP SQL to VFP TABLE
Message
 
To
31/03/2001 11:30:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00487177
Message ID:
00490900
Views:
11
What if I don't know what the directory is on the web server? I guess I will have to call the ISP and have them create an ODBC connection and use that connection.

>This is one of the ways I connect to VFP free tables. It's important to realize that you are actually connecting to the directory where your free tables are resident.
>
>'-- Create ODBC connection to VFP directory.
> StrConn = "DRIVER={Microsoft FoxPro VFP Driver (*.dbf)};UID=;PWD=;SourceDB=c:\altus_quote\data;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
> set Conn = server.createobject("ADODB.Connection")
> Conn.Open StrConn
>' Create a command object.
> set Cmd = Server.CreateObject("ADODB.Command")
>'Create data-set for uploading
> buildSQLInsert("company")
> cmd.ActiveConnection = Conn
> cmd.CommandText = (SQLInsertStr)
> cmd.execute
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Previous
Reply
Map
View

Click here to load this message in the networking platform