26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“DataView” object is used to sort and filter data in Datatable.<br />

Note:- This is one of the favorite questions in .<strong>NET</strong>.Just paste the picture in your mind<br />

and during interview try to refer that image.<br />

(B)What are the two fundamental objects in ADO.<strong>NET</strong> ?<br />

Datareader and Dataset are the two fundamental objects in ADO.<strong>NET</strong>.<br />

(B)What is difference between dataset and datareader ?<br />

Following are some major differences between dataset and datareader :-<br />

√<br />

√<br />

√<br />

DataReader provides forward-only and read-only access to data , while the<br />

DataSet object can hold more than one table (in other words more than one<br />

rowset) from the same data source as well as the relationships between them.<br />

Dataset is a disconnected architecture while datareader is connected<br />

architecture.<br />

Dataset can persists contents while datareader can not persist contents , they<br />

are forward only.<br />

(I)What are major difference between classic ADO and<br />

ADO.<strong>NET</strong> ?<br />

Following are some major differences between both<br />

√<br />

√<br />

As in classic ADO we had client and server side cursors they are no more<br />

present in ADO.<strong>NET</strong>.Note it's a disconnected model so they are no more<br />

applicable.<br />

Locking is not supported due to disconnected model.<br />

√ All data is persisted in XML as compared to classic ADO where data<br />

was persisted in Binary format also.<br />

(B)What is the use of connection object ?<br />

They are used to connect a data to a Command object.<br />

√<br />

An OleDbConnection object is used with an OLE-DB provider<br />

* Why do you want to leave this company ? (Never say anything negative about your past<br />

company)<br />

175

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!