Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDB Provider Command Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00628455
Message ID:
00629126
Vues:
19
Hi Steve,

I would work with VFP OLE DB provider the same way as with SQL Server, use set oriented SQL commands (Insert, Update, Delete) or create Recordset and use it to update VFP table.


>The following code works in the VFP7 Command Window. I tried to 'port it to VBScript and it does not work. However, the APPEND command is supported by the OLEDB driver, according the MSDN.
>
>
>Set oConn = CreateObject("ADODB.Connection")
>oConn.ConnectionString = "Provider=VFPOLEDB.1;Data Source=c:\wintemp\ttdata\ttdata.dbc"
>oConn.Open
>oConn.Execute("use benefittype in 0") 'benefittype is an existing table
>oConn.Execute("append blank ")
>
>Error message:
>Microsoft OLE DB Provider for Visual FoxPro: One or more errors occurred during processing of command.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform