The things I learnt while I migrated from classic asp to asp.net is given here for my reference as well as for new beginners.

What is ADO.NET | Data Provider | DataSet

What is the meaning of this line in ASP.NET :

<%@ import Namespace="System.Data.OracleClient" %>

or

<%@ import Namespace="System.Data.SqlClient" %>

or

<%@ import Namespace="System.Data.Oledb" %>

or

<%@ import Namespace="System.Data.Odbc" %>

 

If you are using any one of the above lines in your code ,that means you are using ADO.NET to access data. And inside the code you will be using the corresponding DATAPROVIDER listed here.

Data Provider for Oracle (System.Data.OracleClient).

Data Provider for SQL Server (System.Data.SqlClient).


Data Provider for OLEDB (System.Data.OleDb).


Data Provider for ODBC (System.Data.Odbc).

ADO.NET is nothing but a set of classes which are used for accessing the database.

(ADO stands for Microsoft Activex Data Object)

 

Actually this DataProvider is again divided into a number of objects like this:

Connection object ( OracleConnection,SqlConnection, OleDbConnection, OdbcConnection)


Command object (SqlCommand, OleDbCommand, OdbcCommand, OracleCommand)


DataReader object (SqlDataReader, OleDbDataReader, OdbcDataReader, OracleDataReader)


DataAdapter object (SqlDataAdapter, OleDbDataAdapter, OdbcDataAdapter, OracleDataAdapter).

Apart from the above, the ADO.NET consisits of another item known as DATATSET.


 

 

Carefully watch the Diagram given at the top. To get data from the database, you have to follow the Red Path or the Blue Path. In the Red Path, DataReader is there. It is very fast. But it is forward-only which means it is useful for JUST display the records (not good for updating).

The Blue path has DataSet which has lot many features.


 

Thanks for Your Visit

Google Search
Disclaimer and Copy Right