Parameterized Query No rows effected
- From: "Dave Blake" <barnswood@xxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 09:36:24 +0100
I have a parameterized query of the following form
UPDATE MyTable
SET field1 = :Param1
WHERE field2 = :Param2 AND
NOT EXISTS (SELECT field21 FROM MyTable2
WHERE (field21=field1) AND (field22 <> :Param3) )
but it mysteriously does not update anything when executed.
All parameters are ftInteger, input direction, set to integer values before
ExecSql. Executed within a transaction after another query that updates
MyTable2 - could there be an issue of it not seeing these changes? Yet a
similar query with Param1, and Param3 replaced by fixed numeric values in
the SQL works perfectly (updates the records expected), as does a
non-parameterized query building the SQL text dymanically.
I just can't see what is wrong with it. Any ideas? ADO onto mdb file via Jet
4.
Dave
.
- Follow-Ups:
- Re: Parameterized Query No rows affected
- From: Dave Blake
- Re: Parameterized Query No rows effected
- From: Vitali Kalinin
- Re: Parameterized Query No rows affected
- Prev by Date: Re: Create A Table From A FieldList?
- Next by Date: Re: Parameterized Query No rows effected
- Previous by thread: Either BOF or EOF is True - MDAC 2.8 - Delphi 6 SP3 - SQL2000 - Win XP
- Next by thread: Re: Parameterized Query No rows effected
- Index(es):
Relevant Pages
|
|