- Category: .NET
- #145465executeQuery is used for command objects. Like, this method will send "select statement" to database and returns value.
executeNonQuery uses the DML operations,Stored, this method will return number of records effected by the database table
- #145466ExecuteQuery : when you are selecting data from the database then use this
ExecuteNonQuery : when you are inserting or updating data into database then use this