>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.brLeandro,
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