UPDATE statement on MDB failes
- From: "Lander Debeuf" <lander.debeuf@xxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 16:45:31 +0100
the UPDATE statement with the OleDbCommand class wont work with me :(
i cant seem to get it right
i use for an example the following statement:
'update tbl_DynCountry set Country = @Country where CountryID = @CountryID'
then i add the parameters, and i add the database connection to the command!
when i am in debugmode, everything seems ok, dataconnection is open,
parameters are attached, with the right value,
then i use the method
command.ExecuteNonQuery();
and the return value is 0 -- meaning 0 rows affected!
i cant seem to find the problem :(
insert statements are working fine, but the update aint :(
did anybody have the same problem in the past??? and how do i solve it?
.
- Follow-Ups:
- Re: UPDATE statement on MDB failes
- From: Norman Yuan
- Re: UPDATE statement on MDB failes
- Prev by Date: System.Transactions stored procedure returns NULL value
- Next by Date: Re: System.Transactions stored procedure returns NULL value
- Previous by thread: System.Transactions stored procedure returns NULL value
- Next by thread: Re: UPDATE statement on MDB failes
- Index(es):
Relevant Pages
|
|