Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP SQL to VFP TABLE
Message
 
À
31/03/2001 11:30:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00487177
Message ID:
00490900
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform