DATA MANAGEMENT WITH ADO.NET
ADO.NET  <ul><li>Introduced in ver 1.0 of .NET </li></ul><ul><li>Used to manage data contained in a relational database. <...
ADO.NET 1.0 <ul><li>DataReader </li></ul><ul><li>DataSet </li></ul>
ADO.NET 2.0 <ul><li>Introduced many new features </li></ul>
Common ADO.NET Tasks <ul><li>Selecting Data </li></ul><ul><li>Inserting Data </li></ul><ul><li>Updating Data </li></ul><ul...
Basic ADO.NET Namespaces and Classes <ul><li>System.Data </li></ul><ul><li>System.Data.Common </li></ul><ul><li>System.Dat...
Using Connection Object <ul><li>Properties of Connection </li></ul><ul><ul><li>ConnectionString </li></ul></ul><ul><ul><li...
Connection <ul><li>Dim conn as SqlConnection </li></ul><ul><li>Conn=new SqlConnection(“server=localhost;uid=sa;pwd=;databa...
Command Object <ul><li>Used to execute SQL queries </li></ul>
Properties of SqlCommand <ul><li>CommandText </li></ul><ul><li>CommandTimeout </li></ul><ul><li>CommandType </li></ul><ul>...
Execute Methods of Command Object <ul><li>ExecuteNonQuery </li></ul><ul><li>ExecuteReader </li></ul><ul><li>ExecuteRow </l...
DataAdapter <ul><li>Bridges gap b/w disconnected DataTable object and Physical data source </li></ul><ul><li>It can execut...
DataAdapter <ul><li>Properties </li></ul><ul><ul><li>SelectCommand </li></ul></ul><ul><ul><li>InsertCommand </li></ul></ul...
Using Parameters <ul><li>Properties of SqlParameter </li></ul><ul><ul><li>ParameterName </li></ul></ul><ul><ul><li>SqlDbTy...
Understanding DataSet and DataTable
Using Oracle as Database with ASP.net
Upcoming SlideShare
Loading in …5
×

Data management with ado

2,098 views
1,989 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,098
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
72
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Data management with ado

  1. 1. DATA MANAGEMENT WITH ADO.NET
  2. 2. ADO.NET <ul><li>Introduced in ver 1.0 of .NET </li></ul><ul><li>Used to manage data contained in a relational database. </li></ul>
  3. 3. ADO.NET 1.0 <ul><li>DataReader </li></ul><ul><li>DataSet </li></ul>
  4. 4. ADO.NET 2.0 <ul><li>Introduced many new features </li></ul>
  5. 5. Common ADO.NET Tasks <ul><li>Selecting Data </li></ul><ul><li>Inserting Data </li></ul><ul><li>Updating Data </li></ul><ul><li>Deleting Data </li></ul>
  6. 6. Basic ADO.NET Namespaces and Classes <ul><li>System.Data </li></ul><ul><li>System.Data.Common </li></ul><ul><li>System.Data.OleDb </li></ul><ul><li>System.Data.Odbc </li></ul><ul><li>System.Data.SqlClient </li></ul><ul><li>SystemData.SqlTypes </li></ul>
  7. 7. Using Connection Object <ul><li>Properties of Connection </li></ul><ul><ul><li>ConnectionString </li></ul></ul><ul><ul><li>DataSource </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><ul><li>State </li></ul></ul>
  8. 8. Connection <ul><li>Dim conn as SqlConnection </li></ul><ul><li>Conn=new SqlConnection(“server=localhost;uid=sa;pwd=;database=Northwind”); </li></ul><ul><li>conn.Open() </li></ul>
  9. 9. Command Object <ul><li>Used to execute SQL queries </li></ul>
  10. 10. Properties of SqlCommand <ul><li>CommandText </li></ul><ul><li>CommandTimeout </li></ul><ul><li>CommandType </li></ul><ul><li>Connection </li></ul>
  11. 11. Execute Methods of Command Object <ul><li>ExecuteNonQuery </li></ul><ul><li>ExecuteReader </li></ul><ul><li>ExecuteRow </li></ul><ul><li>ExecuteScalar </li></ul><ul><li>ExecuteXmlReader </li></ul>
  12. 12. DataAdapter <ul><li>Bridges gap b/w disconnected DataTable object and Physical data source </li></ul><ul><li>It can execute SELECT on datasource </li></ul><ul><li>It can execute INSERT, DELETE, UPDATE operations </li></ul>
  13. 13. DataAdapter <ul><li>Properties </li></ul><ul><ul><li>SelectCommand </li></ul></ul><ul><ul><li>InsertCommand </li></ul></ul><ul><ul><li>UpdateCommand </li></ul></ul><ul><ul><li>DeleteCommand </li></ul></ul>
  14. 14. Using Parameters <ul><li>Properties of SqlParameter </li></ul><ul><ul><li>ParameterName </li></ul></ul><ul><ul><li>SqlDbType </li></ul></ul><ul><ul><li>Size </li></ul></ul><ul><ul><li>Direction </li></ul></ul><ul><ul><li>SourceColumn </li></ul></ul><ul><ul><li>Value </li></ul></ul>
  15. 15. Understanding DataSet and DataTable
  16. 16. Using Oracle as Database with ASP.net

×