How to work with data sources and datasets

Size: px
Start display at page:

Download "How to work with data sources and datasets"

Transcription

1 Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved by a data source. Use other controls like text boxes to present the data that s retrieved by a data source. Write the Visual Basic code for handling any data errors that result from the use of the data source or the controls that are bound to it. Use the Dataset Designer to (1) view the schema for the dataset of a data source, (2) modify a query using the Query Builder, (3) preview the data for a query, or (4) review the SQL statements that are generated for a data source. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 1 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 2 Objectives (continued) Knowledge Describe the use of a connection string in an app.config file. Describe the use of the Fill and UpdateAll methods of the TableAdapter object. Describe the use of the EndEdit method of the BindingSource object. Describe the two categories of data errors that can occur when you run an application that uses a data source. Describe the use of the DataError event for a DataGridView control. In general terms, describe the way the SQL statements that are generated for a data source (1) prevent concurrency errors, and (2) refresh a dataset when the database generates the keys for new rows. An empty Data Sources window Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 3 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 4 A Data Sources window after a data source has been added The first step of the Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 5 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 6 1

2 How to start the Click on the Add New Data Source link that s available from the Data Sources window when a project doesn t contain any data sources. Click on the Add New Data Source button at the top of the Data Sources window. Select the Add New Data Source command from Visual Studio s Dt Data menu. Add a SQL Server (.mdf) or Access (.mdb) data file to the project using the Project Add Existing Item command. Then, the wizard will let you choose the database objects you want to include. How to choose a data source type To get your data from a database, select the Database option. This option lets you create applications like the ones described in this chapter. To get your data from a web service, select the Web Service option. This option lets you browse the web to select a web service that will supply data to your application. To get your data from a business object, select the Object option. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 7 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 8 The second step of the The Add Connection and Change Data Source dialog boxes Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 9 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 10 In the Express Edition The Change Data Source dialog box provides only three options: Microsoft Access Database File, Microsoft SQL Server Compact 3.5 (the default), and Microsoft SQL Server Database File. The Add Connection dialog box is simpler, and it includes a Database File Name text box that you use to specify the database. The third step of the Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 11 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 12 2

3 The information that s stored in the app.config file <connectionstrings> <add name= "ProductMaintenance.My.MySettings.MMABooksConnectionString" connectionstring="data Source=localhost\sqlexpress; Initial Catalog=MMABooks; Integrated Security=True" providername="system.data.sqlclient" /> </connectionstrings> The last step of the Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 13 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 14 How to work with columns that have default values If a column in a database has a default value, that value isn t included in the column definition in the dataset. Because of that, you may want to omit columns with default values from the dataset unless they re needed by the application. Then, when a row is added to the table, the default value is taken from the database. If you include a column that s t defined d with a default value, you must provide a value for that column whenever a row is added to the dataset. One way to do that is to let the user enter a value. Another way is to display the Dataset Designer and use the Properties window for the column to set the DefaultValue property. A project with a dataset defined by a data source Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 15 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 16 A form after the Products table has been dragged onto it The controls and objects that are created when you drag a data source to a form Control/object DataGridView control Displays the data from the data source in a grid. BindingNavigator control Defines the toolbar that can be used to navigate, add, update, and delete rows in the DataGridView control. BindingSource object Identifies the data source that the controls on the form are bound to and provides functionality for working with the data source. DataSet object Provides access to all of the tables, views, stored procedures, and functions that are available to the project. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 17 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 18 3

4 The controls and objects that are created when you drag a data source to a form (continued) Control/object TableAdapter object Provides the commands that are used to read and write data to and from the specified table in the database. TableAdapterManager object Provides for writing data in related tables to the database while maintaining referential integrity. The user interface for the Product Maintenance application Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 19 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 20 The code that s generated by Visual Studio Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the ''MMABooksDataSet.Products' table. 'You can move, or remove it, as needed. Me.ProductsTableAdapter.Fill( _ Me.MMABooksDataSet.Products) Private Sub ProductsBindingNavigatorSaveItem_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles ProductsBindingNavigatorSaveItem.Click Me.Validate() Me.ProductsBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.MMABooksDataSet) The syntax of the Fill method TableAdapter.Fill(DataSet.TableName) The syntax of the UpdateAll method TableAdapterManager.UpdateAll(DataSet) Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 21 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 22 How to change the default control for a data table How to change the default control for a column in a data table Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 23 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 24 4

5 A form after the Customers table has been dragged onto it The user interface for the Customer Maintenance application Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 25 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 26 The code for the Customer Maintenance application Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the ''MMABooksDataSet.Customers' table. 'You can move, or remove it, as needed. Me.CustomersTableAdapter.Fill( _ Me.MMABooksDataSet.Customers) Private Sub CustomersBindingNavigatorSaveItem_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles CustomersBindingNavigatorSaveItem.Click Me.Validate() Me.CustomersBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.MMABooksDataSet) End Class.NET data provider exception classes Name Thrown if a server error occurs SqlException When accessing a SQL Server database. OracleException When accessing an Oracle database. OdbcException When accessing an ODBC database. OleDbException When accessing an OLE DB database. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 27 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 28 Common members of the.net data provider exception classes Property Number An error number that identifies the type of error. Message A message that describes the error. Source The name of the provider that generated the error. Errors Method GetType() A collection of error objects that contain information about the errors that occurred during a database operation. Gets the type of the current exception. Code that catches a SQL exception Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load Try Me.CustomersTableAdapter.Fill( _ Me.MMABooksDataSet.Customers) Catch ex As SqlException MessageBox.Show("Database error # " & ex.number _ & ": " & ex.message, ex.gettype.tostring) End Try Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 29 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 30 5

6 Common ADO.NET exception classes Class DBConcurrencyException The exception that s thrown if the number of rows affected by an insert, update, or delete operation is zero. DataException The general exception that s thrown when an ADO.NET error occurs. ConstraintException The exception that s thrown if an operation violates a constraint. This is a subclass of the DataException class. NoNullAllowedException The exception that s thrown when an add or update operation attempts to save a null value in a column that doesn t allow nulls. This is a subclass of the DataException class. Common members of the ADO.NET classes Property Message A message that describes the exception. Method GetType() Gets the type of the current exception. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 31 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 32 Code that handles ADO.NET errors Try Me.CustomersBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.MMABooksDataSet) Catch ex As DBConcurrencyException MessageBox.Show("A concurrency error occurred. " _ & "Some rows were not updated.", _ "Concurrency Error") Me.CustomersTableAdapter.Fill( _ Me.MMABooksDataSet.Customers) Catch ex As DataException MessageBox.Show(ex.Message, ex.gettype.tostring) CustomersBindingSource.CancelEdit() Catch ex As SqlException MessageBox.Show("Database error # " & ex.number _ & ": " & ex.message, ex.gettype.tostring) End Try An event of the DataGridView control Event DataError Raised when the DataGridView control detects a data error such as a value that isn t in the correct format or a null value where a null value isn t valid. Three properties of the DataGridViewDataErrorEventArgs class Property Exception RowIndex ColumnIndex The exception that was thrown as a result of the error. You can use the Message property of this object to get additional information about the exception. The index for the row where the error occurred. The index for the column where the error occurred. Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 33 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 34 Code that handles a data error for a DataGridView control Private Sub ProductsDataGridView_DataError( _ ByVal sender As System.Object, _ ByVal e As _ System.Windows.Forms.DataGridViewDataErrorEventArgs) _ Handles ProductsDataGridView.DataError Dim row As Integer = e.rowindex + 1 Dim errormessage As String = _ "A data error occurred." & vbcrlf _ & "Row: " & row & vbcrlf _ & "Error: " & e.exception.message MessageBox.Show(errorMessage, "Data Error") The schema displayed in the Dataset Designer Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 35 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 36 6

7 The Query Builder The Preview Data dialog box Diagram Grid SQL Results Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 37 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 38 SQL that retrieves customer rows SELECT FROM CustomerID, Name, Address, City, State, ZipCode Customers SQL that inserts a customer row and refreshes the dataset INSERT INTO Customers (Name, Address, City, State, ZipCode) @State, SELECT FROM WHERE CustomerID, Name, Address, City, State, ZipCode Customers (CustomerID = SCOPE_IDENTITY()) SQL that updates a customer row and refreshes the dataset UPDATE Customers SET Name Address City State ZipCode WHERE ( (CustomerID AND (Name AND (Address AND (City AND (State AND (ZipCode ); SELECT FROM WHERE CustomerID, Name, Address, City, State, ZipCode Customers (CustomerID Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 39 Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 40 SQL that deletes a customer row DELETE FROM Customers WHERE (CustomerID AND (Name AND (Address AND (City AND (State AND (ZipCode Murach s Visual Basic 2008, C , Mike Murach & Associates, Inc. Slide 41 7

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

How to use data sources with databases (part 1)

How to use data sources with databases (part 1) Chapter 14 How to use data sources with databases (part 1) 423 14 How to use data sources with databases (part 1) Visual Studio 2005 makes it easier than ever to generate Windows forms that work with data

More information

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be

More information

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 3 Windows Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Retrieve and display data from a SQL Server database on Windows forms Use the

More information

C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2)

C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2) 13 Database Using Access ADO.NET C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Objectives (1 of 2) Retrieve and display data

More information

Windows Database Applications

Windows Database Applications 3-1 Windows Database Applications Chapter 3 In this chapter, you learn to access and display database data on a Windows form. You will follow good OOP principles and perform the database access in a datatier

More information

CSC 330 Object-Oriented

CSC 330 Object-Oriented CSC 330 Object-Oriented Oriented Programming Using ADO.NET and C# CSC 330 Object-Oriented Design 1 Implementation CSC 330 Object-Oriented Design 2 Lecture Objectives Use database terminology correctly

More information

Programming with ADO.NET

Programming with ADO.NET Programming with ADO.NET The Data Cycle The overall task of working with data in an application can be broken down into several top-level processes. For example, before you display data to a user on a

More information

VS2010 C# Programming - DB intro 1

VS2010 C# Programming - DB intro 1 VS2010 C# Programming - DB intro 1 Topics Database Relational - linked tables SQL ADO.NET objects Referencing Data Using the Wizard Displaying data 1 VS2010 C# Programming - DB intro 2 Database A collection

More information

Building Datacentric Applications

Building Datacentric Applications Chapter 4 Building Datacentric Applications In this chapter: Application: Table Adapters and the BindingSource Class Application: Smart Tags for Data. Application: Parameterized Queries Application: Object

More information

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 10 Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives Use database terminology correctly Create Windows and Web projects that display

More information

Windows Database Updates

Windows Database Updates 5-1 Chapter 5 Windows Database Updates This chapter provides instructions on how to update the data, which includes adding records, deleting records, and making changes to existing records. TableAdapters,

More information

Introduction to using Visual Studio 2010 to build data-aware applications

Introduction to using Visual Studio 2010 to build data-aware applications CT5805701 Software Engineering in Construction Information System Dept. of Construction Engineering, Taiwan Tech Introduction to using Visual Studio 2010 to build data-aware applications Yo Ming Hsieh

More information

CIS 209 Final Exam. 1. A Public Property procedure creates a property that is visible to any application that contains an instance of the class.

CIS 209 Final Exam. 1. A Public Property procedure creates a property that is visible to any application that contains an instance of the class. CIS 209 Final Exam Question 1 1. A Property procedure begins with the keywords. Public [ReadOnly WriteOnly] Property Private [ReadOnly WriteOnly] Property Start [ReadOnly WriteOnly] Property Dim [ReadOnly

More information

Supporting Non-Standard Development Configurations

Supporting Non-Standard Development Configurations Supporting Non-Standard Development Configurations The samples in Data Binding with Windows Forms 2.0 assume you have a default instance of SQL Server 2000 or 2005 installed on your machine, and that the

More information

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide Volume 1 CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET Getting Started Guide TABLE OF CONTENTS Table of Contents Table of Contents... 1 Chapter 1 - Installation... 2 1.1 Installation Steps... 2 1.1 Creating

More information

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p.

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the Right Architecture p. Foreword p. xxi Acknowledgments p. xxiii About the Authors p. xxv Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p. 10 Understanding Your

More information

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

More information

Chapter 4. Windows Database Using Related Tables The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 4. Windows Database Using Related Tables The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 4 Windows Database Using Related Tables McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Explain the types of table relationships Display master/detail records

More information

Lesson 6: Using XML Queries

Lesson 6: Using XML Queries Lesson 6: Using XML Queries In the previous lesson you learned how to issue commands and how to retrieve the results of selections using the UniSelectList class, whether for regular enquiry statements

More information

IOS Plus Trade - Web Services Version 4 Walkthrough

IOS Plus Trade - Web Services Version 4 Walkthrough IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that

More information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will

More information

Data Binding. Data Binding

Data Binding. Data Binding Data Binding Data Binding How to Populate Form Controls? Specify the data in the control s properties Not dynamic: can t get data from a database Write code that uses the control s object model This is

More information

QDABRA DBXL S XML RENDERING SERVICE CONFIGURATION

QDABRA DBXL S XML RENDERING SERVICE CONFIGURATION Page 1 of 12 QDABRA DBXL S XML RENDERING SERVICE CONFIGURATION FOR DBXL V3.1 LAST UPDATED: 12/21/2016 October 26, 2016 OVERVIEW This new feature will create XML files from the SQL data. To keep a loosely

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

Chapter 10 Databases

Chapter 10 Databases hapter 10 Databases Section 10.1 n Introduction to Databases 1. rectangular array of data is called a () field. (B) record. () table. (D) database management system. 2. Each row in a table is also called

More information

ComponentOne. DataObjects for.net

ComponentOne. DataObjects for.net ComponentOne DataObjects for.net ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Website: http://www.componentone.com Sales: sales@componentone.com

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Setting Synchronization Direction

Setting Synchronization Direction In Visual Studio 2008, the Local Database Cache configures a SQL Server Compact 3.5 database and a set of partial classes that enable Sync Services for ADO.NET. Because Visual Studio generates partial

More information

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the

More information

How to Validate DataGridView Input

How to Validate DataGridView Input How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications .NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications ABIS Training & Consulting 1 DEMO Win Forms client application queries DB2 according

More information

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : Connection Example Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 page 1 Table of Contents Connection Example... 2 Adding the Code... 2 Quick Watch myconnection...

More information

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related PROCEDURES LESSON 8: MANAGING RELATIONSHIPS BETWEEN TABLES Renaming a Table 1 In the Navigation pane, right-click the table you want to rename 2 On the shortcut menu, click Rename 3 Type the new table

More information

1. A Web Form created in Visual Basic can only be displayed in Internet Explorer. True False

1. A Web Form created in Visual Basic can only be displayed in Internet Explorer. True False True / False Questions 1. A Web Form created in Visual Basic can only be displayed in Internet Explorer. 2. Windows Explorer and Internet Explorer are Web browsers. 3. Developing Web applications requires

More information

ComponentOne. DataObjects for.net

ComponentOne. DataObjects for.net ComponentOne DataObjects for.net Copyright 1987-2012 GrapeCity, Inc. All rights reserved. ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Internet:

More information

Chapter 3 How to use HTML5 and CSS3 with ASP.NET applications

Chapter 3 How to use HTML5 and CSS3 with ASP.NET applications Chapter 3 How to use HTML5 and CSS3 with ASP.NET applications Murach's ASP.NET 4.5/C#, C3 2013, Mike Murach & Associates, Inc. Slide 1 IntelliSense as an HTML element is entered in Source view IntelliSense

More information

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved.

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved. Oracle Rdb Developer Tools for Visual Studio Developer's Guide V7.3.2.1 May 2011 Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release 7.3-21 Copyright 2011 Oracle Corporation Corporation.

More information

Database Tutorials

Database Tutorials Database Tutorials Hello everyone welcome to database tutorials. These are going to be very basic tutorials about using the database to create simple applications, hope you enjoy it. If you have any notes

More information

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

Object Oriented Programming Using Visual C# 2012-Level 2

Object Oriented Programming Using Visual C# 2012-Level 2 Object Oriented Programming Using Visual C# 2012-Level 2 Course ISI-1289B - Five Days - Instructor-led - Hands on Introduction This course is the second in a series of two courses, which are appropriate

More information

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2) TRAINING & REFERENCE murach s Oracle SQL and PL/SQL (Chapter 2) works with all versions through 11g Thanks for reviewing this chapter from Murach s Oracle SQL and PL/SQL. To see the expanded table of contents

More information

6.1 Understand Relational Database Management Systems

6.1 Understand Relational Database Management Systems L E S S O N 6 6.1 Understand Relational Database Management Systems 6.2 Understand Database Query Methods 6.3 Understand Database Connection Methods MTA Software Fundamentals 6 Test L E S S O N 6. 1 Understand

More information

Table of Contents DATA MANAGEMENT TOOLS 4. IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8

Table of Contents DATA MANAGEMENT TOOLS 4. IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8 Data Management Tools 1 Table of Contents DATA MANAGEMENT TOOLS 4 IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8 Importing ODBC Data (Step 2) 10 Importing MSSQL

More information

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015 Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release 7.3.4.0 June 2015 Oracle Rdb Data Provider for.net Developer's Guide, Release 7.3.4.0 Copyright 2011, 2015 Oracle and/or its affiliates.

More information

Visual Basic 2008 Anne Boehm

Visual Basic 2008 Anne Boehm TRAINING & REFERENCE murach s Visual Basic 2008 Anne Boehm (Chapter 3) Thanks for downloading this chapter from Murach s Visual Basic 2008. We hope it will show you how easy it is to learn from any Murach

More information

Sage Estimating (SQL) v17.12

Sage Estimating (SQL) v17.12 Sage Estimating (SQL) v17.12 Creating Sage Estimating Reports with SAP Crystal Reports October 2017 This is a publication of Sage Software, Inc. 2017 The Sage Group plc or its licensors. All rights reserved.

More information

C16 Visual Basic Net Programming

C16 Visual Basic Net Programming C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...

More information

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010 Objectives COMM 391 Introduction to Management Information Systems Introduction to Microsoft Access 2010 Describe the major objects in Access database. Define field, record, table and database. Navigate

More information

APEX Times Ten Berichte. Tuning DB-Browser Datenmodellierung Schema Copy & Compare Data Grids. Extension Exchange.

APEX Times Ten Berichte. Tuning DB-Browser Datenmodellierung Schema Copy & Compare Data Grids. Extension Exchange. Oracle SQL Developer 3.0 Data Mining Debugging Code Snippets DBA-Navigator APEX Times Ten Berichte Unit Tests Migration Workbench Versionskontrolle Extension Exchange Tuning DB-Browser

More information

Revision for Final Examination (Second Semester) Grade 9

Revision for Final Examination (Second Semester) Grade 9 Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual

More information

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

More information

ADO.NET Using Visual Basic 2005 Table of Contents

ADO.NET Using Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 The Chapter Files...INTRO-3 About the Authors...INTRO-4 ACCESSING

More information

Interacting with External Applications

Interacting with External Applications Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them

More information

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix Acknowledgments...xiii About the Authors...xv Introduction...xix Chapter 1 Introducing ADO.NET...1 How We Got Here...2 What Do These Changes Mean?...5 ADO.NET A New Beginning...7 Comparing ADOc and ADO.NET...8

More information

Object Oriented Programming Using Visual C# 2012-Level 2

Object Oriented Programming Using Visual C# 2012-Level 2 Object Oriented Programming Using Visual C# 2012-Level 2 Course ISI-1340 - Five Days - Instructor-led - Hands on Introduction This course is the second in a series of two courses, which are appropriate

More information

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction 1 of 20 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

To enter the number in decimals Label 1 To show total. Text:...

To enter the number in decimals Label 1 To show total. Text:... Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.

More information

UNIT V - ADO.NET Database Programming with ADO.NET- Data Presentation Using the DataGridView Control- DataGridView- Updating the Original Database.

UNIT V - ADO.NET Database Programming with ADO.NET- Data Presentation Using the DataGridView Control- DataGridView- Updating the Original Database. Semester Course Code Course Title L P C IV UCS15402 Visual Basic.NET 3 2 0 UNIT I - VISUAL BASIC.NET and FRAME WORK The Common Type System- The Common Language Specification- The Common Language Runtime

More information

Test Bank Database Processing Fundamentals Designand Implementation 14th Edition Kroenke

Test Bank Database Processing Fundamentals Designand Implementation 14th Edition Kroenke Test Bank Database Processing Fundamentals Designand Implementation 14th Edition Kroenke Instant download and all chapters TESK BANK Database Processing Fundamentals Designand Implementation 14th Edition

More information

Tutorial 1. Creating a Database

Tutorial 1. Creating a Database Tutorial 1 Creating a Database Microsoft Access 2010 Objectives Learn basic database concepts and terms Explore the Microsoft Access window and Backstage view Create a blank database Create and save a

More information

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For

More information

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office Access 2010 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table

More information

Database Application Development Oracle PL/SQL, part 2. CS430/630 Lecture 18b

Database Application Development Oracle PL/SQL, part 2. CS430/630 Lecture 18b Database Application Development Oracle PL/SQL, part 2 CS430/630 Lecture 18b Murach Chapter 14 How to manage transactions and locking PL/SQL, C14 2014, Mike Murach & Associates, Inc. Slide 2 Objectives

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Melon, Inc. Melon Components Starter Kit

Melon, Inc. Melon Components Starter Kit User s Guide for Melon Components Starter Kit For additional information www.meloncomponents.com Contact us at info@meloncomponents.com 2010 All rights reserved Contents Overview... 3 Melon Components

More information

Dynamically build connection objects for Microsoft Access databases in SQL Server Integration Services SSIS

Dynamically build connection objects for Microsoft Access databases in SQL Server Integration Services SSIS Dynamically build connection objects for Microsoft Access databases in SQL Server Integration Services SSIS Problem As a portion of our daily data upload process, we receive data in the form of Microsoft

More information

Lecture 10 OOP and VB.Net

Lecture 10 OOP and VB.Net Lecture 10 OOP and VB.Net Pillars of OOP Objects and Classes Encapsulation Inheritance Polymorphism Abstraction Classes A class is a template for an object. An object will have attributes and properties.

More information

DATA MIRROR FOR PT USER S GUIDE. Multiware, Inc. Oct 9, 2012 *Changes are in red font*

DATA MIRROR FOR PT USER S GUIDE. Multiware, Inc. Oct 9, 2012 *Changes are in red font* DATA MIRROR FOR PT USER S GUIDE Multiware, Inc. Oct 9, 2012 *Changes are in red font* Table of Contents 1. Introduction...3 2. Prerequisites...4 3. MirrorControl Class...5 3.1 Methods...5 ClearALLPTData...5

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate (103-134) Building Access Databases Notes Quick Links Building Databases Pages AC52 AC56 AC91 AC93 Building Access Tables Pages AC59 AC67 Field Types Pages AC54 AC56 AC267 AC270

More information

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc.

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc. Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc. GD22-4 1 2 Agenda Introduction Overview of dbconnect Configure a data source Connect database to AutoCAD

More information

Crystal Reports. Overview. Contents. Differences between the Database menu in Crystal Reports 8.5 and 9

Crystal Reports. Overview. Contents. Differences between the Database menu in Crystal Reports 8.5 and 9 Crystal Reports Differences between the Database menu in Crystal Reports 8.5 and 9 Overview Contents If you cannot find a command that exists in Crystal Reports 8.5 from the Database menu in Crystal Reports

More information

Programming Logic -Intermediate

Programming Logic -Intermediate Programming Logic -Intermediate 152-102 Database Access Text References Data Access Concepts No book references Diagram Connected vs. Disconnected Adding a Data Source View Data in Grid View Data in Fields

More information

Database Tutorials

Database Tutorials Database Tutorials Hello everyone welcome to database tutorials. These are going to be very basic tutorials about using the database to create simple applications, hope you enjoy it. If you have any notes

More information

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

Microsoft Visual C# 2005: Developing Applications Table of Contents

Microsoft Visual C# 2005: Developing Applications Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Sample Database...INTRO-3 Security...INTRO-4 Installation...INTRO-4

More information

Database Applications

Database Applications Database Applications Pemrograman Visual (TH22012 ) by Kartika Firdausy 081.328.718.768 kartikaf@indosat.net.id kartika@ee.uad.ac.id blog.uad.ac.id/kartikaf kartikaf.wordpress.com Introduction A database

More information

How to design a database

How to design a database Chapter 16 How to design a database A database system is modeled after a real-word system 2017, Mike Murach & Associates, Inc. C 16, Slide 1 2017, Mike Murach & Associates, Inc. C 16, Slide 4 Objectives

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it.

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it. Page 1 of 5 Working with SQL Server Management Studio SQL Server Management Studio (SSMS) is the client tool you use to both develop T-SQL code and manage SQL Server. The purpose of this section is not

More information

"!#... )*! "!# )+, -./ 01 $

!#... )*! !# )+, -./ 01 $ Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?

More information

SQL Server Reporting Services (SSRS) is one of SQL Server 2008 s

SQL Server Reporting Services (SSRS) is one of SQL Server 2008 s Chapter 9 Turning Data into Information with SQL Server Reporting Services In This Chapter Configuring SQL Server Reporting Services with Reporting Services Configuration Manager Designing reports Publishing

More information

Tutorial 03 understanding controls : buttons, text boxes

Tutorial 03 understanding controls : buttons, text boxes Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple

More information

What s New in Jet Reports 2010 R2

What s New in Jet Reports 2010 R2 What s New in Jet Reports 2010 R2 The purpose of this document is to describe the new features and requirements of Jet Reports 2010 R2. Contents Before You Install... 3 Requirements... 3 Who should install

More information

PL/SQL Developer 7.0 New Features. December 2005

PL/SQL Developer 7.0 New Features. December 2005 PL/SQL Developer 7.0 New Features December 2005 L/SQL Developer 7.0 New Features 3 Contents CONTENTS... 3 1. INTRODUCTION... 5 2. DIAGRAM WINDOW... 6 2.1 CREATING A DIAGRAM...6 2.2 SAVING AND OPENING

More information

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page LESSON 2 2.1 Read and Write XML Data 2.2 Distinguish Between DataSet and DataReader Objects 2.3 Call a Service from a Web Page 2.4 Understand DataSource Controls 2.5 Bind Controls to Data by Using Data-Binding

More information

Complete Quick Reference Summary

Complete Quick Reference Summary Microsoft Access 2010 Complete Quick Reference Summary Microsoft Access 2010 Quick Reference Summary Advanced Filter/Sort, Use AC 153 Advanced button (Home tab Sort & Filter, Advanced Filter/Sort) All

More information

Visual Studio.NET for AutoCAD Programmers

Visual Studio.NET for AutoCAD Programmers December 2-5, 2003 MGM Grand Hotel Las Vegas Visual Studio.NET for AutoCAD Programmers Speaker Name: Andrew G. Roe, P.E. Class Code: CP32-3 Class Description: In this class, we'll introduce the Visual

More information

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service?

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service? Chapter 1 Taking Web Services for a Test Drive What s a Web Service? Understanding Operations That Are Well Suited for Web Services Retrieving Weather Information Using a Web Service 101 Retrieving Stock

More information

A201 Object Oriented Programming with Visual Basic.Net

A201 Object Oriented Programming with Visual Basic.Net A201 Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Computer Science and Informatics IU South Bend 1 What do we need to learn in order to write computer programs? Fundamental programming

More information

Tutorial 2. Building a Database and Defining Table Relationships

Tutorial 2. Building a Database and Defining Table Relationships Tutorial 2 Building a Database and Defining Table Relationships Microsoft Access 2010 Objectives Learn the guidelines for designing databases and setting field properties Modify the format of a field in

More information

ARPEGGIO Data Access Frequently Asked Questions

ARPEGGIO Data Access Frequently Asked Questions Technical Bulletin ARPEGGIO Data Access Frequently Asked Questions Product: ARPEGGIO products Version: ARPEGGIO 1.0 & later Host: Mainframe, AS/400 RS/6000 NIC: N/A Interface: RUMBA Router Microsoft SNA

More information

Introduction to relational databases and MySQL

Introduction to relational databases and MySQL Chapter 3 Introduction to relational databases and MySQL A products table Columns 2017, Mike Murach & Associates, Inc. C3, Slide 1 2017, Mike Murach & Associates, Inc. C3, Slide 4 Objectives Applied 1.

More information

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature There is a custom feature available in Query Viewer that allows files to be created from queries and copied to a user s PC. This feature doesn t have the same size limitations as running a query to HTML

More information