Creating Data Base & Sql Data Source

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

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
MS-Word XP Lesson 1.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Benchmark Series Microsoft Access 2010 Level 1
Copyright 2002, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-1 LINKS TO OBJECTIVES Form Concepts Creating the Form Template Creating the Form Template.
Access Lesson 2 Creating a Database
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Copyright 2008 Judith A Copeland - Accessing The Database By Judi Copeland.
Working with GridView Control: Adding Columns. Adding Buttons to a Bound GridView: 1. Drag the WebProduct table from Data connection to a page 2. Demo.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Creating a backup file Downloading a backup file Uploading a backup file Resetting or restoring your course from a backup file.
® Microsoft Office 2013 Access Creating a Database.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
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.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
CMAP Concept Mapping Activity Climate Change Unit.
Presentation On How To Create Connection To A Database.
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.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Microsoft ® Outlook 2000 Integrating Outlook with Office Applications.
Click the I Pro and select MANAGE and the PROJECTS. This will allow you to set up a folder that will contain the files for your current project. If you.
1 After completing this lesson, you will be able to: Create a form using AutoForm. Create a form using the Form Wizard. Add controls to a form. Modify.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 350.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
How To Start a SQL server Connecting to SQL Server.
Murach's ASP.NET 4.5/C#, C4© 2013, Mike Murach & Associates, Inc.Slide 1.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Basic Database Concepts
Access Creating a Database
Access Creating a Database
CIS16 Application Programming with Visual Basic
File Upload.
CIS16 Application Programming with Visual Basic
Accessing Databases with ADO.NET, Handling Exceptions, and Printing
Creating Data Base & Sql Data Source
Web Form Introduction.
ASP.NET Relationships between tables
Creating Session By huda AlSuwailem.
Working with your database
Database 2.
Data Base.
Presentation transcript:

Creating Data Base & Sql Data Source By huda AlSuwailem

First, click on App_Data folder.

Then, Right-click and choose Add New Item Then, Right-click and choose Add New Item. A dialog box will appear, select SQL Database. Type a name for the database.

Click on View, and select Server Explorer window Click on View, and select Server Explorer window. Double-click on your database then all files which are stored in this database will appear. Right-click on Table folder and choose Add New Table.

Create the fields you desire and choose their data types Create the fields you desire and choose their data types. Don’t forget to save your table. For example, create 2 fields “StudentID” and “StudentName”.

Add two textboxes to deal with the database.

Choose SqlDataSource from the Data section in the Toolbox window Choose SqlDataSource from the Data section in the Toolbox window. From the smart-tag click on Configure Data Source.

Choose the data connection you want to use to connect to the database, then click Next.

After that, select the first choice to add your Sql statement.

Write the SQL statement to select all table’s fields Write the SQL statement to select all table’s fields. Click Next then Finish.

Click on the InsertQuery from the Properties window Click on the InsertQuery from the Properties window. Write the insert command.

Create the Parameters.

After creating them, click ok.

Add a button control to your page, change its default text -which is “button”- to “insert”. Double-click the insert button and write the following code:

Click on the DeleteQuery from the Properties window Click on the DeleteQuery from the Properties window. Write the delete command. Create the Parameter(s) you need.

Click on the UpdateQuery from the Properties window Click on the UpdateQuery from the Properties window. Write the update command. Create the Parameter(s) you need.

Click on the SelectQuery from the Properties window Click on the SelectQuery from the Properties window. Write the select command. Create the Parameter(s) you need.

These are the codes you write in the buttons (Insert, Delete, Update, Select) :