Home > Software > .NET > ASP.NET
Interview Questions   Tutorials   Discussions   

ASP.NET - What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar?




295
views
asked mar October 4, 2014 11:33 AM  

What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar?


           

1 Answers



 
answered By siddhant   0  

ExecuteReader

Executes the query to read data from database.

ExecuteNonQuery

Used to update data of the database.

ExecuteScaler

Execute query to retrieve data.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert