Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP SQL to VFP TABLE
Message
From
31/03/2001 11:30:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00487177
Message ID:
00490603
Views:
8
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
C. W. Finch Consulting
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform