UPDATE statement on an MDB
- From: "Lander Debeuf" <lander.debeuf@xxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 16:44:33 +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 an MDB
- From: Mary Chipman [MSFT]
- Re: UPDATE statement on an MDB
- Prev by Date: Re: OLEDB Provider with SQL Server 2000
- Next by Date: RE: oledb on Windows 2003 Server x64
- Previous by thread: Re: OLEDB Provider with SQL Server 2000
- Next by thread: Re: UPDATE statement on an MDB
- Index(es):
Relevant Pages
|
|