UrbanPro
true

Learn ADO.NET from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Differences Between Execution Query, Execute Scalar and Execute Reader.

Suprio Dutta
30/06/2018 0 0

ExecuteNonQuery

ExecuteNonQuery method will return number of rows effected with INSERT, DELETE or UPDATE operations. This ExecuteNonQuery method will be used only for insert, update and delete, Create, and SET statements. 

 

ExecuteReader

Execute Reader will be used to return the set of rows, on execution of SQL Query or Stored procedure using command object. This one is forward only retrieval of records and it is used to read the table values from first to last. MOSTLY HELPFUL WHEN SEARCHNG FOR EXISTANCE OF PARTICULAR DATABASE RECORDS.since its only for searching and retrieval of records here as well INSERT, DELETE or UPDATE queries for its operations tobe performed is not applicable.

 

Execute Scalar

Execute Scalar will return single row single column value i.e. single value, on execution of SQL Query or Stored procedure using command object. It’s very fast to retrieve single values from database. as comapred to executeNonquery its not depended on INSERT, DELETE or UPDATE queries for its operations tobe performed.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You



Why Need for Delegates in C#
.1. TYPE SAFETY FEATURES. 2. OBJECT ORIENRED FEATURES. 3. Lamda Function 4. BRING GENERICS. 1. Type safety means an object when defined has its ability to understand of its own type and maintain...

Benefits of Angular JS over traditional JavaScript and jquery
1. Easy designing web pages 2. Code reusability 3. Client validations more optimized and faster . 4. MVC architecture finds suitable interface to accept server responses Back in more customized manner .

Looking for ADO.NET ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for ADO.NET Classes?

The best tutors for ADO.NET Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn ADO.NET with the Best Tutors

The best Tutors for ADO.NET Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more