You must Sign In to post a response.
  • Category: .NET

    ExecuteQuery Vs. ExecuteNonQuery

    What is the difference b/w above two
  • #145465
    executeQuery 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

  • #145466
    ExecuteQuery : when you are selecting data from the database then use this

    ExecuteNonQuery : when you are inserting or updating data into database then use this

    Regards,
    Satish.

    Regards,
    Satish

  • #145575
    http://dng-ado.blogspot.com
    DotNetGuts (DNG)


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.