Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
ADO.NET Architecture MIS3502: Application Integration and Evaluation Paul Weinberg weinberg@temple.edu Adapted from material by Arnold Kurtz, David Schuff, and Paul Weinberg The Database Server Made up of Database Management System (DBMS) Network Operating System (NOS) Database Server Has: Oracle 10 Oracle’s API • SQL APIs Windows Server 2003 • Database-level Security TCP/IP • Network Protocols • OS-level Security Client/Application Server Has: Windows XP Oracle Driver TCP/IP When things get messy… Client/Application Server Has: Windows XP Oracle Driver MSSQL Driver DB2 Driver TCP/IP Database Server A: Oracle 10 Oracle’s API Windows Server 2000 TCP/IP Database Server B: MSSQL 2005 MSSQL API Windows Server 2003 TCP/IP Database Server C: The node communicating with the database servers have to have a driver for each type of server (a lot of management). IBM DB2 9 DB2 API Solaris (Sun) TCP/IP One solution: Microsoft Data Access Components (MDAC) Defines a standard set of routines with which an application can access data in a data source (from Windows online help) Several components ODBC – Open Database Connectivity OLEDB – Object Linking and Embedding for Databases ADO (.NET) – ActiveX Data Objects for .NET We’ll look at ODBC/OLEDB The server has a single API, and the clients know how to “talk” that API Works through the Operating System How it looks with OleDB… Client/Application Server Has: Windows XP MS OleDB driver Oracle DSN MSSQL DSN DB2 DSN TCP/IP Database Server A: Oracle 10 OleDb API Windows 2000 TCP/IP Database Server B: MSSQL 2005 OleDb API Windows 2000 TCP/IP Database Server C: Instead of three drivers on the client, there is a single driver with multiple data sources defined. IBM DB2 9 OleDb API Solaris (Sun) TCP/IP Basic ADO.NET objects (Microsoft Access example) DataSet Data table .NET data provider Data adapter • The adapter is the interface between the application and .NET • The command object contains the SQL statement The GUI is populated with data from the DataSet Command • The connection object manages the direct interaction with the database server Database server Connection Database “Disconnected data model” The connection is only established when data is retrieved or sent to the database server From Murach, M. and Boehm, A. “ASP.NET 2.0 Web Programming with C# 2005,” 2006, page 363. via the Microsoft “Jet Engine” topmovies.mdb Closer look at the Dataset • The data table object consists of columns, rows, and constraints. • A column object represents the metadata for a field in the table. Dataset Data relation Data table • A row object represents a record (set of column data). Constraint Data row Data column • A constraint object maintains data integrity through primary key rules and referential integrity. • A relation object contains information about the relationships between the tables. From Murach, M. “C# 2005,” 2006, page 519.