You are on page 1of 3

3/20/2014

ADO.NET - .NET Interview Questions and Answers Page 3

New: Electronics and Communication Engineering Questions !

search...

Arithmetic Aptitude Data Interpretation


Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry
Biotechnology Biochemical
Engineering
Electronics and
Communication Engineering
Civil Engineering Mechanical
Engineering Chemical
Engineering Networking
Database Questions
Computer Science Basic
Electronics Digital Electronics
Electronic Devices Circuit
Simulation Electrical
Enigneering Engineering
Mechanics Technical
Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test
General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core
Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C
Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing
Home
Aptitude
Logical Reasoning
Verbal Ability
GK
Puzzles
Engineering
Interview
Online Test

ADO.NET - .NET Interview Questions and Answers


@ : Home > Technical Interview > .NET > ADO.NET > Interview Questions

Dotnet Framework
Ado Net
ASP Net Apps
13. Name the two properties of the GridViewcontrol that have to be specified to turn on sorting and paging.
The properties of the GridViewcontrol that need to be specified to turn on sorting and paging are as follows:
The AllowSortingproperty of the Gridview control indicates whether sorting is enabled or not. You
should set the AllowSortingproperty to Trueto enable sorting.
The AllowPagingproperty of the Gridviewcontrol indicates whether paging is enabled or not. You
should set the AllowPagingproperty to Trueto enable paging.

14. Mention different types of data providers available in .NET Framework.

http://indiabix.com/technical/dotnet/ado-dot-net/3

1/3

3/20/2014

ADO.NET - .NET Interview Questions and Answers Page 3


.NET Framework Data Provider for SQL Server - Provides access to Microsoft SQL Server 7.0 or later
version. It uses the System.Data.SqlClientnamespace.
.NET Framework Data Provider for OLE DB - Provides access to databases exposed by using OLE DB. It
uses the System.Data.OleDbnamespace.
.NET Framework Data Provider for ODBC - Provides access to databases exposed by using ODBC. It uses
the System.Data.Odbcnamespace.
.NET Framework Data Provider for Oracle - Provides access to Oracle database 8.1.7 or later versions. It
uses the System.Data.OracleClientnamespace.

15. Which architecture does Datasets follow?


Datasets follow the disconnected data architecture.

16. What is the role of the DataSetobject in ADO.NET?


One of the major component of ADO.NET is the DataSetobject, which always remains disconnected from the
database and reduces the load on the database.

17. What is a DataReaderobject?


The DataReaderobject helps in retrieving the data from a database in a forward-only, read-only mode. The base
class for all the DataReaderobjects is the DbDataReaderclass.
The DataReaderobject is returned as a result of calling the ExecuteReader()method of the Commandobject.
The DataReaderobject enables faster retrieval of data from databases and enhances the performance of .NET
applications by providing rapid data access speed. However, it is less preferred as compared to the DataAdapter
object because the DataReaderobject needs an Open connection till it completes reading all the rows of the
specified table.
An Open connection to read data from large tables consumes most of the system resources. When multiple client
applications simultaneously access a database by using the DataReaderobject, the performance of data retrieval
and other related processes is substantially reduced. In such a case, the database might refuse connections to
other .NET applications until other clients free the resources.

18. How can you identify whether or not any changes are made to the DataSetobject since it was last loaded?
The DataSetobject provides the following two methods to track down the changes:
The GetChanges()method - Returns the DataSetobject, which is changed since it was loaded or since
the AcceptChanges()method was executed.
The HasChanges()method - Indicates if any changes occurred since the DataSetobject was loaded or
after a call to the AcceptChanges()method was made.

If you want to revert all changes since the DataSetobject was loaded, use the RejectChanges()method.

Prev 1234567 Next

http://indiabix.com/technical/dotnet/ado-dot-net/3

2/3

3/20/2014

ADO.NET - .NET Interview Questions and Answers Page 3

2008-2014 by IndiaBIX T echnologies. All Rights Reserved | Copyright | T erms of Use & Privacy Policy
Contact us: info@indiabix.com

Follow us on twitte r!

Bookmark to:

http://indiabix.com/technical/dotnet/ado-dot-net/3

3/3

You might also like