+ All Categories
Home > Technology > Data Access Technologies

Data Access Technologies

Date post: 17-Jun-2015
Category:
Upload: dimara-hakim
View: 381 times
Download: 2 times
Share this document with a friend
Popular Tags:
8
Choosing Data Access Technologies and an Object Model Instructor : Dimara Kusuma Hakim, ST.
Transcript
Page 1: Data Access Technologies

Choosing Data Access Technologies

and an Object Model

Instructor : Dimara Kusuma Hakim, ST.

Page 2: Data Access Technologies

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 AccessTechnologies

Desktop Computer Database Server

Page 3: Data Access Technologies

Data access libraries that support client-side

OLE DBOLE DB ODBCODBC

ADOADO ADO.NETADO.NET

Page 4: Data Access Technologies

Data Access Technologies

VBSQL.OCXVBSQL.OCXVBSQL.OCXVBSQL.OCX

Database ApplicationDatabase Application

ADOADOADOADO

OLEDBOLEDBOLEDBOLEDB

DB-LibraryDB-LibraryDB-LibraryDB-Library

SQLNCLISQLNCLISQLNCLISQLNCLI

Client Network LibraryClient Network LibraryClient Network LibraryClient Network Library

.NET .NET Framework Framework

Data ProviderData Providerfor SQLfor SQLServerServer

.NET .NET Framework Framework

Data ProviderData Providerfor SQLfor SQLServerServer

Storage Storage EngineEngine

Storage Storage EngineEngine

Relational Relational EngineEngine

Relational Relational EngineEngine

TSQL EndpointTSQL EndpointTSQL EndpointTSQL Endpoint

Server Network LibraryServer Network LibraryServer Network LibraryServer Network Library

DB ServerDB Server

Architecture of Data Access Technologies

Page 5: Data Access Technologies

Considerations for Using Earlier Technologies to Access Data

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

SQLXMLFunctionality to be replaced by HTTP endpoints and new XML support in SQL Server 2005

Page 6: Data Access Technologies

Guidelines for Accessing Data When Using Databinding

Consider the following guidelines for accessing data by using Databinding :Consider the following guidelines for accessing data by using Databinding :

Implement concurrency violation detection codeImplement concurrency violation detection code

Use connection poolingUse connection pooling

Filter data properlyFilter data properly

Acquire late, release earlyAcquire late, release early

Explicitly close connectionsExplicitly close connections

Page 7: Data Access Technologies

Connection

SqlConnection cn = new SqlConnection(“Data Source=MIA-SQL\SQLINST1;InitialCatalog=AdventureWorks;Integrated

Security=True”);cn.Open();

SqlConnection cn = new SqlConnection(“Data Source=MIA-SQL\SQLINST1;InitialCatalog=AdventureWorks;Integrated

Security=True”);cn.Open();

ServerServerClientClient

Execution Session Execution Environment

Session IDSession ID

Connection Pool

SqlCommand cmd1 = new SqlCommand(“SELECT ...”, cn);SqlCommand cmd2 = new SqlCommand(“UPDATE ...”, cn);

SqlDataReader rdr1 = cmd1.ExecuteReader();SqlDataReader rdr2 = cmd2.ExecuteReader();

SqlCommand cmd1 = new SqlCommand(“SELECT ...”, cn);SqlCommand cmd2 = new SqlCommand(“UPDATE ...”, cn);

SqlDataReader rdr1 = cmd1.ExecuteReader();SqlDataReader rdr2 = cmd2.ExecuteReader();

cn.Close();cn.Close();

ServerServerClientClient

Page 8: Data Access Technologies

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

In this demonstration, your instructor will explain the various ways to connect SQL Server to other data stores


Recommended