Results 1 to 3 of 3

Thread: when should we use "executenonquery"

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    when should we use "executenonquery"

    which is the right scenario when i should be using "Executenonquery"?
    I am aware of the fact that it will not not return any records but only number of records affected.

    thanks
    nath

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Generally its on UPDATE, INSERT, or DELETE queries.

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Yes, when you don't care about what the Procedure does except maybe the # rows affected (like E said, usually on Insert, Update, Del). Quite useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width