- ExecuteNonQuery : Use for data manipulation such as Insert, Update, Delete.
- ExecuteReader : Use for accessing data. It provides a forward-only, read-only, connected recordset.
- ExecuteScalar : Use for retriving 1 row 1 col. value., i.e. Single value. eg: for retriving aggregate function. It is faster than other ways of retriving a single value from DB.
dot net tips, DotNet tips, .Net Tips,Dot Net tips and tricks,Dot Net Solutions, OOPS Concept in C#,SQL Server, LinQ, Ajax, Java script, JQuery, Server Error details, daily .net tips and tricks , DotNet Interview Questions.
Showing posts with label What is difference between ExecuteReader. Show all posts
Showing posts with label What is difference between ExecuteReader. Show all posts
What is difference between ExecuteReader, ExecuteNonQuery and ExecuteScalar
Subscribe to:
Posts (Atom)