Basic Database Concepts

Slides:



Advertisements
Similar presentations
Course ILT Working with related tables Unit objectives Use the Lookup Wizard to create a lookup field and a multivalued field Modify lookup field properties.
Advertisements

1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 5 – Reports and Macros.
Access Lesson 2 Creating a Database
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Databases and LINQ Visual Basic 2010 How to Program 1.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
® Microsoft Office 2013 Access Creating a Database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
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.
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.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 5 – Reports and Macros.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Access Tutorial 2 Building a Database and Defining Table Relationships
Tutorial 1 Creating a Database
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Creating Data Base & Sql Data Source
Visual Basic 2010 How to Program
VB 2010 Pertemuan 10.
Access Tutorial 1 Creating a Database
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.
Microsoft Office Access 2003
Developing Forms and Subforms.
Introduction to Microsoft Access
Objectives Create an action query to create a table
Part 1 of 2 Creating SQL Database and Binding to GridView
Access Creating a Database
Microsoft Office Illustrated Fundamentals
Access Creating a Database
Access Tutorial 4 Creating Forms and Reports
Access Lesson 1 Understanding Access Fundamentals
Microsoft Office Access 2003
Access Tutorial 1 Creating a Database
Creating and Modifying Queries
CIS16 Application Programming with Visual Basic
Access Lesson 2 Creating a Database
Microsoft Office Access 2003
CIS16 Application Programming with Visual Basic
Access Tutorial 1 Creating a Database
Chapter 1 Databases and Database Objects: An Introduction
Microsoft Office Access 2003
Database Applications
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating Data Base & Sql Data Source
Access Tutorial 2 Building a Database and Defining Table Relationships
Macro.
Access Tutorial 1 Creating a Database
Exploring Microsoft Access 2003
Access Tutorial 1 Creating a Database
Tutorial 9 Using Action Queries and Advanced Table Relationships
Database 2.
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Data Base.
Presentation transcript:

Creating SQL Database file And Displaying a Database Table in a DataGridView

Basic Database Concepts A database: is a collection of related data, organized into entities called tables that are connected together by relationships. A Table: is a part of the database that contains related information about a certain entity (Students, Teachers, Faculties, etc.). A table consists of fields that represent the needed information. A certain data type should be specified for each field (e.g. StudentName "string or varchar", CreditHours "Int", etc.) Primary Key: A unique field, that shouldn't be repeated in any record, and shouldn't be null.

Basic Database Concepts

Create new windows application project

Click on add new data source option in data source window

In choose data source type dialog box select Dataset then click next

In choose your data connection dialog box click on new connection button

Select Microsoft SQL Server Database file option as a data source then click on continue button

In Add connection dialog box enter a name for the database file ex: database1 then click on ok button

A massage box will appear to tell you that this is a new database would you like to create it? Click on yes button

Now a new database is created with a specific connection string that will be used to connect the application to this database.

Click next

Click on NO button

Click on next

Click on previous button

Click on finish button

Open server explorer then click on database1 Open server explorer then click on database1.mdf then right click on Tables and choose Add new Table option

Add new filed "name" to the table as following

To save changes on the table click on update then Click on update database button

To change table name to "student"

Update the database then close the table

On data source window right click on database1Dataset then choose Configure data source with wizard then choose tables

Then choose table click finish

Drag and drop student table from data source window to the form

Run the program

Add new record then click save

Remove the record then click save

How Data Binding Works The technique through which GUI controls are connected to data sources is known as data binding. The IDE allows controls, such as a DataGridView, to be bound to a data source, such as a DataSet that represents a table in a database. Any changes you make through the application to the underlying data source will automatically be reflected in the way the data is presented in the data-bound control (e.g., the DataGridView). Likewise, modifying the data in the data-bound control and saving the changes updates the underlying data source.