|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to find out records number affected?Which was updated by the sql UPDATE instruction.
Is there some objects returning the number or I have to do explicit SELECT nevertheless? Thanks in advance. Ivan Abramov wrote:
> Which was updated by the sql UPDATE instruction. the Update method itself return the "Rows Affected"...> Is there some objects returning the number > or I have to do explicit SELECT nevertheless? > > Thanks in advance. How do you invoke UPDATE in first place?
Take note that DbCommand.ExecuteNonQuery returns affected rows count. -- Show quoteMiha Markic [MVP C#, INETA Country Leader for Slovenia] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ "Ivan Abramov" <IvanAbra***@discussions.microsoft.com> wrote in message news:B9991F2A-E414-4958-9443-A07AFAD47DF3@microsoft.com... > Which was updated by the sql UPDATE instruction. > Is there some objects returning the number > or I have to do explicit SELECT nevertheless? > > Thanks in advance. |
|||||||||||||||||||||||