VB 2010 Pertemuan 10.

Slides:



Advertisements
Similar presentations
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Advertisements

 Open the Paradise.exe file  Application displays records in the Books database  Allows the store manager to enter an author’s name (or part of a name)
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Chapter 14.3 LINQ to SQL Programming in Visual Basic 2010: The Very Beginner’s Guide by Jim McKeown Databases – Part 3.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Integrating Access with the Web and with Other Programs.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
An INTRODUCTION to MICROSOFT ACESS 2000 By Dr. Ennis-Cole.
Databases and LINQ Visual Basic 2010 How to Program 1.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Thirteen Working with Access Databases and LINQ.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
Databases with LINQ. LINQ to SQL LINQ to SQL uses LINQ syntax to query databases. LINQ to SQL classes are automatically generated by the IDE’s LINQ to.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Chapter 9 Working with Databases. Copyright © 2011 Pearson Addison-Wesley Introduction In this chapter you will learn: – Basic database concepts – How.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Tutorial 1 Creating a Database
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Visual Basic 2010 How to Program
, MS-Access, QBE, Access/Oracle
Microsoft Access 2013 Bobby Wan.
Access Tutorial 1 Creating a Database
COP 4540 Database Management
Practical Office 2007 Chapter 10
DATABASE CONCEPTS A database is a collection of logically related data designed to meet the information needs of one or more users Data bases are store-houses.
Basic Database Concepts
Access Creating a Database
Microsoft Office Illustrated Fundamentals
Access Creating a Database
Access Lesson 1 Understanding Access Fundamentals
Access Tutorial 1 Creating a Database
Brief description on how to navigate within this presentation (ppt)
CIS16 Application Programming with Visual Basic
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Office Access 2003
CIS16 Application Programming with Visual Basic
Access Tutorial 1 Creating a Database
Lessons Vocabulary Access 2016.
Access: Access Basics Participation Project
Database Applications
Accessing Databases with ADO.NET, Handling Exceptions, and Printing
Tutorial 7 – Integrating Access With the Web and With Other Programs
Access Tutorial 1 Creating a Database
Access Tutorial 4 Creating Forms and Reports
Chapter 10 Accessing Database Files
Access Tutorial 1 Creating a Database
Grauer and Barber Series Microsoft Access Chapter Two
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

VB 2010 Pertemuan 10

Database Background Data usually organized in a series of tables Relational database: a database with multiple tables and relationships between tables Database management system: a database and the software to manage it

Database Background Tables tied together by key fields Key fields share a common name and have the same data Microsoft Access databases are similar to DBMS but easier to use and widely available for a PC Key fields a field shared by two or more tables in a database; key fields are the link between tables in a relational database like, nim in one table; nim in a second table.

Database Background In VB, Data Manipulation handled by Language-Integrated Query (LINQ) and Structured Query Language (SQL); called LINQ to SQL SQL is the language of most databases Language-Integrated Query (LINQ) - programming implementation that allows SQL statements to be integrated into a VB program Structured Query Language (SQL) a database development language that allows for the searching, filtering, organizing and reports of records from a database So, the database stores the data and your VB program provides the interface to see the data.

Database Background LINQ to SQL: the way to get data from database to screen. Query Search into a database; Queries Return specified fields from selected records, and Display them in a specific order Queries determine : what tables to use what records are requested what fields in the record to retrieve the conditions used to search through the data

Connecting to a Database Tutorial Create an access database and named it dbPenjualan. Create two tables and named it tblBarang and tblPenjualan. KodeBarang (size = 6) and KodeTransaksi (size=15).

Connecting to a Database Tutorial

Connecting to a Database Tutorial Open your last solution, Add a DataGridView control (from ToolBox) and Name it dgvjual.

Connecting to a Database Tutorial 2. Select DataSource property of dgvJual control. Selecting the DataSource property allows the developer to select a specific database file DataSource property says None but has a down-arrow in the property box.

Connecting to a Database Tutorial 3. Add a Data Source Click on link to Add Project Data Source... This will start a wizard that guides us (the developer) through the steps to connect to a database The notion of “connecting” top a database is a critical concept / term in the database world.

Connecting to a Database Tutorial Data Source Configuration Wizard Select Database; Click Next button

Connecting to a Database Tutorial Data Source Configuration Wizard Click on New Connection

Connecting to a Database Tutorial Look up OLE DB!!

Connecting to a Database Tutorial Add Connection Dialog

Connecting to a Database Tutorial Local Connection Warning Dialog

Connecting to a Database Tutorial Save Connection String Dialog

Connecting to a Database Tutorial Next two slides together Select the Database Objects for the DataSet Determines tables and fields available when your program runs Expand the Tables CheckBox Select tblBarang (Selects the tblBarang table) (We only have one table at this time.  ) Expand the tblBarang table to see the fields (attributes) (Fields are already selected; Leave selected) Click Finish Now have connection between pgm and database!

Connecting to a Database Tutorial Choose Your Database Objects Screen See expansions

Connecting to a Database Tutorial Summary: DataGrid view adds and displays field names Your database files added to Solution Explorer Controls added to the component tray Run your application to see the data from the yourdatabase

END oF SLIDE