Difference between datareader and dataset?
Answer Posted / chitaranjan mallick
- Data Reader apply only Select Statement, It can featch data from multiple Table Through Multiple Select Statement separated by Semicolon(;) Likes For Ex:
SqlCommand cmd=new SqlCommand("Select * from Emp";" Select * From Dept",Con);
DataReader dr=cmd.ExecuteReader();
dr.NextResults();
Here NextResults() Navigate from One Tables to Anather Tables
- It is Readonly, It can featch single Record At a Time..
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of ado.net?
What is ado.net objects?
Which provider is used to connect ms access, oracle, etc…?
What is DataRowCollection?
Which name space is used to get assembly details?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What are three methods for displaying data in a syncfusion datagrid
What are the ado.net objects?
What are the different methods by which we can populate a dataset?
Which is the feature of ado.net?
What is the use of connection object in ado.net?
What is a datagridview?
What is the difference between executenonquery () and executescalar ()?
What are disadvantages of microsoft-provided data provider classes in ado.net?