Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP OleDb Provider and ExecuteNonQuery
Message
From
17/06/2004 08:13:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00913901
Message ID:
00914584
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform