4
ADO.NET Page 1 of 4 Advanc Fal A Dr.Qad ADO.NET Programming 1 ced Programming Language (630501) ll 2011/2012 – Lecture Notes # 22 ADO.NET Objects Model dri Hamarsheh

ADO.NET Objects Model - Philadelphia University · 2013. 11. 6. · ADO.NET Page 4 of 4 • The SqlConnection class is used to establish a database.The SqlConnection class is used

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ADO.NET Objects Model - Philadelphia University · 2013. 11. 6. · ADO.NET Page 4 of 4 • The SqlConnection class is used to establish a database.The SqlConnection class is used

ADO.NET

Page 1 of 4

Advanced Programming Language (630501)

Fall 2011/2012

ADO.NET Objects Model

Dr.Qadri Hamarsheh

ADO.NET Programming

1

Advanced Programming Language (630501)

Fall 2011/2012 – Lecture Notes # 22

ADO.NET Objects Model

Dr.Qadri Hamarsheh

Page 2: ADO.NET Objects Model - Philadelphia University · 2013. 11. 6. · ADO.NET Page 4 of 4 • The SqlConnection class is used to establish a database.The SqlConnection class is used

ADO.NET

Page 2 of 4

Dr.Qadri Hamarsheh

ADO.NET Programming

2

Dr.Qadri Hamarsheh

Page 3: ADO.NET Objects Model - Philadelphia University · 2013. 11. 6. · ADO.NET Page 4 of 4 • The SqlConnection class is used to establish a database.The SqlConnection class is used

ADO.NET

Page 3 of 4

Dr.Qadri Hamarsheh

ADO.NET Programming

3

DataReader object

DataSet Object

Dr.Qadri Hamarsheh

Page 4: ADO.NET Objects Model - Philadelphia University · 2013. 11. 6. · ADO.NET Page 4 of 4 • The SqlConnection class is used to establish a database.The SqlConnection class is used

ADO.NET

Page 4 of 4

• The SqlConnection class is used to establish a

database. The SqlConnection class is used for

properties of a connection, or handling connection

• The SqlCommand class is used to

a SQL Server database. The SqlCommand class (and its OLE DB equivalent, the

OleDbCommand class) can execute statements or stored procedures that do not return

values, or that return single values, XML, or datarea

• The SqlDataReader class provides

returned from a SQL Server database. Datareaders (including both the SqlDataReader

and OleDbDataReader) provide high

best choice for accessing data to be displayed in ASP.NET.

• The SqlDataAdapter class is used as a

Server. You can use the SqlDataAdapter class to

statement or stored procedure represent

back-end SQL Server database based on the contents of a dataset, or to

or delete rows from a SQL Server database. The

tasks for OLE DB datasources.

Dr.Qadri Hamarsheh

ADO.NET Programming

4

SQL Server Data Base

class is used to establish a connection to a SQL Server

. The SqlConnection class is used for opening connections,

properties of a connection, or handling connection-related events.

class is used to execute SQL statements or stored procedures

a SQL Server database. The SqlCommand class (and its OLE DB equivalent, the

OleDbCommand class) can execute statements or stored procedures that do not return

values, or that return single values, XML, or datareaders.

class provides forward-only, read-only access

returned from a SQL Server database. Datareaders (including both the SqlDataReader

and OleDbDataReader) provide high-performance access to read-only data and are the

t choice for accessing data to be displayed in ASP.NET.

class is used as a bridge between the DataSet

. You can use the SqlDataAdapter class to create a dataset from a given SQL

statement or stored procedure represented by a SqlCommand instance, to

end SQL Server database based on the contents of a dataset, or to

rows from a SQL Server database. The OleDbAdapter class performs the same

tasks for OLE DB datasources.

Dr.Qadri Hamarsheh

connection to a SQL Server

connections, setting or retrieving

stored procedures against

a SQL Server database. The SqlCommand class (and its OLE DB equivalent, the

OleDbCommand class) can execute statements or stored procedures that do not return

only access to a set of rows

returned from a SQL Server database. Datareaders (including both the SqlDataReader

only data and are the

DataSet class and SQL

a dataset from a given SQL

ed by a SqlCommand instance, to update the

end SQL Server database based on the contents of a dataset, or to insert rows into

class performs the same