ОСОБЕННОСТИ ИСПОЛЬЗОВАНИЯ КОМПОНЕНТОВ ADO

Slides:



Advertisements
Similar presentations
ADO.Net Modelo para acesso a dados nas aplicação.Net Componentes: DataSet.Net Data providers: Connection Command DataReader DataAdapter.
Advertisements

PENGOLAHAN DATABASE MENGGUNAKAN VB.NET
By Chris Pascucci and FLF
Introduction to Database Processing with ADO.NET.
VB.NET Database Access ISYS546. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
Database Access Using ADO.NET
ASP.NET and ADO.NET. ASP.NET Server Controls Intrinsic Controls: These controls correspond to their HTML counterparts. –Ex. Textbox, listbox, button,
VB.NET Database Tools ISYS Net Applications OLE DB Provider OLE DB Data Source OLE DB Provider ODBC Data Source SQL Server Data Source SQL Server.Net.
1 ADO.NET. 2.NET Framework Data Namespaces System.Data –Base set of classes and interfaces for ADO.NET System.Data.Common –Classes shared by the.NET Data.
Working with Session and Application Objects. Postback and Variables Variables declared in a web page including ADO.Net objects may be reinitialized and.
VB.NET Database Tools ISYS 573. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
Coding ADO.NET Objects: Connection, Command, DataReader.
Управляемые провайдеры ADO.NET Подключение к базам данных.
VB.NET Database Access ISYS546. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
C# Programming: From Problem Analysis to Program Design1 Working with Databases C# Programming: From Problem Analysis to Program Design 3 rd Edition 14.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Lecture 11: Programmatic Database Access with ADO.NET.
Overview of ADO.NET Chapter 1 ADO.NET 4.0 Development.
9-1 Chapter 9 Working with Databases in VB.NET. 9-2 Learning Objectives Understand how databases are used to store business data and how they differ from.
Mark Dixon 1 20 – Persistent data storage: relational databases and ADO.
Chapter 11 Introduction to Database Processing. Class 11: Database Processing Use a Visual Studio Wizard to establish a database connection used to load.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
ODBC, OLE DB, and ADO Introduction Dr. Ron Eaglin.
OLE Automation In Microsoft Windows applications programming, OLE Automation is an inter-process communication mechanism based on Component Object Model.
1 Introducing Database Access from Web Applications by Sally Kyvernitis.
1 UCN Technology: Computer Science: Autumn 2012 ADO.NET 2.0 Architecture DataReader DataSet Connection factory Config file.
Overview of ADO.NET with the.NET Framework Scalable Development, Inc. Building systems today that perform tomorrow.
Needs for Accessing Database To make your web site more dynamic and maintainable, you can display information on your web pages that are retrieved from.
Chapter 13 Database Access Using ADO.NET
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
Objectives In this lesson, you will learn to: *Identify the need for ADO.NET *Identify the features of ADO.NET *Identify the components of the ADO.NET.
Module 9: Accessing Relational Data Using Microsoft Visual Studio.NET.
Session 8: ADO.NET. Overview Overview of ADO.NET What is ADO.NET? Using Namespaces The ADO.NET Object Model What is a DataSet? Accessing Data with ADO.NET.
ASP.NET Database Connection. ASP.NET Framework The ASP.NET framework includes the ADO.NET data access technology for working with databases and other.
1 UCN Technology: Computer Science: Autumn 2012 ADO.NET 2.0 Architecture DataReader DataSet Connection factory Config file.
1.Net programmingADO.NETNOEA / PQC ADO.NET Architecture Connection factory Config file DataReader DataSet DataGrid Autogeneration of SQL.
Module 3: Performing Connected Database Operations.
 It is the primary data access model for.Net applications  Next version of ADO  Can be divided into two parts ◦ Providers ◦ DataSets  Resides in System.Data.
JDS – VB.NET Skill Session Fall 2004 Presented by YUHAO LIN.
Why ADO.NET Not your father’s Data Access.
Visual Basic.NET Programming March 3, Agenda Questions / Discussion Cookies Project Work (Ends Around 9:00 PM) Demo's (15 minutes per team)
The Problems HTTP is disconnected So many database vendors Create a simple consistent versatile interface on the data Look at ADO.NET classes OleDb SQL.
CIS 375—Web App Dev II ASP.NET 9 Database. 2 ADO.NET What is ADO.NET? ADO.NET is a part of the.NET Framework ADO.NET consists of a set of classes used.
Why ADO.NET Not your father’s Data Access.
HNDIT Rapid Application Development
Databases – Unit 3 & 4.  SQL is not restricted to a specific database, however in class we will be looking at the two major database programmes in use.
2314 – Programming Language Concepts Introduction to ADO.NET.
Module 4 Introduction ADO.NET.
ADO.NET in VB.NET 2005 ITE 370 4/26/2017.
1 Database Programming with ADO.NET Kashef Mughal.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
Visual BASIC Programming For CCS 301 course Dr. Ahmad ABDELHAY.
Data Access. ADO.NET ADO.NET is the primary library for building database solutions within the.NET Framework. ADO.NET does not replace ADO. ADO and OLEDB.
C# 1 CSC 298 ADO.NET. C# 2 ADO.NET  A data access technology that maps very well to the world of the web (disconnected architecture)  data is retrieved.
Accessing Databases using Ado.net
Introduction to Database Processing with ADO.NET
Copyright Scott-Jones Publishing, All rights reserved.
Coding ADO.NET Objects: Connection, Command, DataReader
Introduction to Database Processing with ADO.NET
ADO.NET Framework.
ADO.NET Accessing Databases in VS.NET
ASP.NET and ADO.NET.
VB.NET Using Database.
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
ДЕМО: Создание базы данных в «облаке»
Tonga Institute of Higher Education
Browser (Client Side) 瀏覽器 (客戶端)
Coding ADO.NET Objects: Connection, Command, DataReader
Создание приложения с помощью App Studio
Database 2.
Presentation transcript:

ОСОБЕННОСТИ ИСПОЛЬЗОВАНИЯ КОМПОНЕНТОВ ADO 12.04.2019 РЭУБД

Компоненты данных ADO.NET 12.04.2019 РЭУБД

Связь с базой данных в ADO.NET 12.04.2019 РЭУБД

Установка соединения с базой данных (Обозреватель серверов) Server Explorer (Обозреватель серверов) 12.04.2019 РЭУБД

Окно выбора провайдера 12.04.2019 РЭУБД

Создание адаптера данных 12.04.2019 РЭУБД

Создание адаптера данных Data Adapter Configuration Wizard OleDbDataAdapter SqlDataAdapter 12.04.2019 РЭУБД

Создание адаптера данных 12.04.2019 РЭУБД

Создание набора данных Generate Dataset 12.04.2019 РЭУБД

Пример использования классов OleDbConnection, OleDbCommand и OleDbDataReader пространства имен System.Data.OleDb 12.04.2019 РЭУБД

Imports System.Data.OleDb Imports System.Data.OleDb Module Module1 Sub Main() Dim myAccessConn As OleDbConnection Dim dbReader As OleDbDataReader 12.04.2019 РЭУБД

Студенты.Фамилия,Студенты. Имя,Студенты.Отчество, Dim dbCmd As OleDbCommand = New OleDbCommand("SELECT Студенты.Фамилия,Студенты. Имя,Студенты.Отчество, Студенты.[Учебная группа] FROM Студенты") 12.04.2019 РЭУБД

OleDbConnection("Provider= Microsoft.Jet.OLEDB.4.0;" & Try ' Открыть соединение myAccessConn = New OleDbConnection("Provider= Microsoft.Jet.OLEDB.4.0;" & "Data Source=D:\Документы_Наташи\Колледж\РЭУ_БД\Лекции\Лекция_4\students.mdb") 12.04.2019 РЭУБД

dbReader = dbCmd.ExecuteReader(CommandBehavior.SingleResult) myAccessConn.Open() dbCmd.Connection=myAccessConn dbReader = dbCmd.ExecuteReader(CommandBehavior.SingleResult) Do While dbReader.Read() 12.04.2019 РЭУБД

Console. WriteLine(dbReader. GetString(0) & " " & dbReader Console.WriteLine(dbReader.GetString(0) & " " & dbReader.GetString(1) & " " & dbReader.GetString(2) & " " & dbReader.GetString(3)) Loop Console.ReadLine() Catch e As Exception MsgBox(e.Message) End Try End Sub End Module 12.04.2019 РЭУБД