Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Data Access Technologies


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Data Access Technologies

  1. 1. Choosing Data Access Technologies and an Object Model Instructor : Dimara Kusuma Hakim, ST.
  2. 2. Data Access System Components Middleware Data Access Component SQL Server DB2 Oracle Middleware Data Access Component SQL Server Oracle DB2 Middleware Data Access Component Client-side Components Server-side Components Data Access Technologies Desktop Computer Database Server
  3. 3. Data access libraries that support client-side OLE DB ODBC ADO ADO.NET
  4. 4. Data Access Technologies <ul><li>Architecture of Data Access Technologies </li></ul>VBSQL.OCX Database Application ADO OLEDB DB-Library SQLNCLI Client Network Library .NET Framework Data Provider for SQL Server Storage Engine Relational Engine TSQL Endpoint Server Network Library DB Server
  5. 5. Considerations for Using Earlier Technologies to Access Data <0II0ll> Legacy technology Considerations DBLibrary ODBC Generic, industry-standard; still the only option for some data sources OLE DB Available for relational and non-relational data sources SQLXML Functionality to be replaced by HTTP endpoints and new XML support in SQL Server 2005
  6. 6. Guidelines for Accessing Data When Using Databinding Consider the following guidelines for accessing data by using Databinding : Implement concurrency violation detection code Use connection pooling Filter data properly    Acquire late, release early Explicitly close connections  
  7. 7. Connection SqlConnection cn = new SqlConnection(“Data Source=MIA- SQLSQLINST1;InitialCatalog=AdventureWorks;Integrated Security=True”); cn.Open(); Server Client Execution Session Execution Environment Session ID Connection Pool SqlCommand cmd1 = new SqlCommand(“SELECT ...”, cn); SqlCommand cmd2 = new SqlCommand(“UPDATE ...”, cn); SqlDataReader rdr1 = cmd1.ExecuteReader(); SqlDataReader rdr2 = cmd2.ExecuteReader(); cn.Close(); Server Client
  8. 8. Demonstration: Connecting SQL Server to Other Data Stores In this demonstration, your instructor will explain the various ways to connect SQL Server to other data stores