B
Buddy
Hello,
I need to know how I can filter out the trigger rows
effected from the rows effected value.
E.g.
//my query is='UPDATE Person WHERE PersonId=3
//this query will have a UPDATE TRIGGER will will
//copy the current person record into a history table.
//If I run the above query in Query Analyser then
//1 Row effected message appears twice. (one for the
//update and the other for the trigger)
int numRowsEffected=myoleDbCommand.ExecuteNonQuery();
How do I turn off the trigger count so ExecuteNonQuery
returns 1.
Thanks
I need to know how I can filter out the trigger rows
effected from the rows effected value.
E.g.
//my query is='UPDATE Person WHERE PersonId=3
//this query will have a UPDATE TRIGGER will will
//copy the current person record into a history table.
//If I run the above query in Query Analyser then
//1 Row effected message appears twice. (one for the
//update and the other for the trigger)
int numRowsEffected=myoleDbCommand.ExecuteNonQuery();
How do I turn off the trigger count so ExecuteNonQuery
returns 1.
Thanks