What is the ExecuteNonQuery method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the ExecuteNonQuery method?
Rating:
The ExecuteNonQuery method of the SqlCommand class is used to execute commands that change a database. These commands include the Transact-SQL INSERT, UPDATE, DELETE, and SET statements. The method acts directly on a database connection and does not require a data set. It returns an integer that indicates the number of rows affected by the execution of a command. This method can also be used to perform catalog operations, such as querying the structure of a database or creating database objects.
Rating:
Was this information helpful?
Other articles
- Things to practice for Microsoft test 70-315.
- What is the <customErrors> element?
- What is serialization?
- What is binding policy?
- What is the syntax for the WriteXml(string, XmlWriteMode) method?