ExcuteNonQuery()


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ExcuteNonQuery()

  1. #1
    Join Date
    Jun 2008
    Posts
    11

    ExcuteNonQuery()

    Is there any Way to Excute Sql command other than ExecuteNonQuery() in c#

  2. #2
    Join Date
    Dec 2004
    Posts
    163
    kamachisekar,

    Well obviously there is also ExecuteReader and ExecuteScaler, but really, what are you trying to accomplish?

    Kerry Moorman

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    In fact, ExecuteNonQuery should NEVER be used to executed a SELECT query.

    ExecuteNonQuery should be used for action queries like UPDATE, INSERT, DELETE, etc.

    ExecuteReader and ExecuteScaler would be used for a SELECT.

    As kmoorman askes, what are you trying to accomplish?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center