Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with VFPOLEDB driver
Message
De
28/06/2007 09:13:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01236245
Message ID:
01236258
Vues:
8
>Hi All, I have a simple console app that inserts records into a newly created VFP table using the VFPOLEDB driver, I can create and populate the table ok, however , at the end of the run I want to copy the table to an Excel file - my code fails with the error "One or more errors occurred" - the errant code is shown below
>
>
>    Command.CommandText = "Select MyTable";
>    Command.ExecuteNonQuery(); // this works ok - or at least doesn't produce an error
>
>    Command.CommandText = "Copy to MySheet type xls";
>    Command.ExecuteNonQuery(); // BOMBS !!!
>
>
>
>any ideas ?

Pete,
That would work with CommandType.StoredProcedure, CommandText = "ExecScript" and parameter "your script".
However, that's somthing that I wouldn't use from within VFP itself:) Instead I'd create a connection to both VFP and Excel and load one reading from the other with something like DataTable.Load(rdrVFP).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform