Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP OleDb Provider and ExecuteNonQuery
Message
De
17/06/2004 08:13:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00913901
Message ID:
00914584
Vues:
15
>Hi,
>
>I am using VFP OleDb Provider and System.Data.OledB to execute stored procedures of VFP by Vb.net.
>
>All the commands Update and Delete that I execute calling the stored procedures with the method ExecuteNonQuery of OleDbCommand, the number of affected records is always 1, even the real number being 0 or many.
>
>Did anybody already go by that, or what does the one know it can be happening? Will a same bug be?
>
>Best regards,
>
>Leandro Macedo
>www.lmacedo.eti.br

Leandro,
ExecuteNonQuery with VFPOLEDB provider returns number of affected rows as documented. No problem with it for me (using C#).
However, either I'm reading you wrong or you're really using ExecuteNonQuery for Stored Procedures ? For Stored Procedures you should use ExecuteScalar.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform