>>>If you need to know how many rows were updated, you can do
>>>
>>>cSQLCommand = "update ...;
>>>
>>>select @@RowCOUNT as RowsUpdated;"
>>>
>>>Then your cursor will have a single row with the number of rows updated.
>>
>>Do you mean to add the "@@RowCOUNT as RowsUpdated;" to my SQL update?
>>
>>That is, would my SQL update command look like this:
>>
>>
>>cSqlUpdate = "update mytable set field1 = '1233' where id_field = 'ABC';select @@RowCOUNT as RowsUpdated"
>>
>>
>>I used a semi-colon to separate two statement. Is this correct?
>>
>>UPDATE. I checked and it works. Thank you!
>
>It was announced at some point that every command in T-SQL should end with semicolon. It works without also (to be backward compatible), but it's a good habit to start adding these semicolons when writing T-SQL code now.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham