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
- What is the Clone method?
- How to change settings for the Release or Debug configuration?
- How to connect a database from the Server Explorer window?
- How to change the Configuration property of a Visual Basic .NET project?
- What is the syntax for the WriteXml(String, XmlWriteMode) method?
