Windows Database Updates

Size: px
Start display at page:

Download "Windows Database Updates"

Transcription

1 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, datasets, and binding sources are used. Objectives Update a database table in a grid and in individual controls Use the BindingSource properties for navigation and for determining the current record number Update the original data source by saving the values from a dataset Validate user input in an update program Sequence the update statements to accurately update related tables 5-3 1

2 Updating a DataSet Using a DataGridView The DataGridView object includes features that allow the user to update the underlying dataset The user can modify data in any row in the grid All changes are made in the underlying dataset (the in-memory copy of the data) When the user clicks the Save button, the BindingNavigator s SaveItem event is fired and an attempt is made to save the data back to the original data source The update code is automatically generated by the designer when a BindingNavigator is added to a form See See code p. p DataGridView 5-5 The TableAdapter A dataset is a temporary source of data A dataset is disconnected from the original data source The TableAdapter s Update method is used to send changes back to the data source 5-6 2

3 Database Handling in the VS IDE First time a program is run in the debugger, the database file is copied into the bin\debug folder and is the one used in the program By default, the file s Copy to Output Directory property is set to Copy always If database updates to show up from one run to the next, select the filename in the Solution Explorer and change the setting for Copy to Output Directory to Copy if newer This checks the file version when the debugger runs and copies the file when appropriate 5-7 Copy Behavior of a Database File (1 of 2) Select the filename in the Solution Explorer and set the Copy to Output Directory property to Copy if newer 5-8 Copy Behavior of a Database File (2 of 2) The database file appears in the project folder and in the bin\debug folder Delete the copy in bin\debug to work with a fresh copy of the original file when the file is set to Copy if newer 5-9 3

4 Data Objects, Methods, and Properties You must use methods and properties of the data objects to write more sophisticated update programs See See Table p. p Overview of of Useful Data Data Methods and and Properties 5-10 DataSet Object Each row of data belongs to a DataRows collection of a table 5-11 The DataRowState Enumeration DataRowState Enumeration Added Purpose Indicates that this is a new row Deleted Detached Modified Unchanged The row is marked for deletion The row is not part of a collection. A row has the detached value before it is added or after it has been removed Changes have been made to the row No changes have been made to the row

5 The HasChanges Method Determines if changes have been made to a dataset Returns a boolean value If If PubsDataSet.HasChanges() Then ' Ask Ask the the user to to save the the changes. End End If If An overloaded version of the method allows you to check for specific types of changes If If PubsData.SetHasChanges(DataRowState.Deleted) Then ' ' Code to to handle the the deletion(s). End End If If 5-13 The GetChanges Method Use to retrieve the rows that have changes Use an empty argument to retrieve all changed rows OR specify type of changes using enumeration values Dim Dim employeechangesdataset As As DataSet employeechangesdataset = PubsDataSet.GetChanges() Dim Dim employeedeletesdataset As As DataSet employeedeletesdataset = PubsDataSet.GetChanges _ (DataRowState.Deleted) 5-14 The Edit Methods To modify a row of data, the row must be in edit mode Edit methods are called automatically for bound controls The BeginEdit is called when an edit begins The EndEdit executes when the method terminates Use the CancelEdit method to return field values to their original values

6 DataRow Versions The DataRow object maintains several versions of its column data Current, Original, Default, and Proposed If no changes have been made, the Current and Original versions are the same When EndEdit executes, the Current version is replaced by the Proposed version The EndEdit method confirms the changes Changes are made when the AcceptChanges method executes 5-16 The AcceptChanges Method (1 of 2) Removes all rows marked for deletion Makes the adds and edits indicated for the table Sets the Original version of each changed row to the Current version Sets the RowState of each row to Unchanged Clears any RowError information and sets the HasErrors property to False 5-17 The AcceptChanges Method (2 of 2) The AcceptChanges method commits all changes to the dataset The RejectChanges method rolls back all changes that have been made by replacing Current versions with the Original versions After AcceptChanges or RejectChanges executes, all RowState properties are reset to Unchanged The dataset is disconnected so changes are made to the dataset and not to the original data source execute the TableAdapter s Update method before calling the AcceptChanges method

7 The TableAdapter Update Method Execute the Update method after every change OR when the program terminates General form if the dataset has only one table there is no need to specify the table name TableAdapter.Update(DataSet.Table) 5-19 When to Update? Every time an add, edit, or delete occurs? When the program terminates? Provide a Save option on a menu and prompt for unsaved changes when the program terminates? Update Considerations Where does the the application and and data reside? How many users can can make changes? Does the the data source need to to be be up-to-date at at all all times? 5-20 Binding Source Update Methods Method AddNew Insert CancelNew Cancel Edit EndEdit RemoveAt RemoveCurrent Purpose Clears bound fields to allow new data to be entered. Adds a new row to the table Adds a record at the specified index Cancels the record being added Cancels the edit currently being processed Completes the current edit Deletes the row at the specified index from the table Deletes the current record

8 Binding Source Events Two useful events for the BindingSource class CurrentChanged event A bound value is changed PositionChanged event The user navigates to another record The PostionChanged event handler is a good place to display the current record number in a label or the status bar See See code p. p Using Binding Source Events in a Multitier Application The BindingSource object must be declared in code and there is no automatic access to its events Declare an object WithEvents to make its events available in code '' Module-level variable. Private WithEvents apublishersbindingsource _ As As BindingSource After an object is declared WithEvents, the events appear in the drop-down lists in the editor 5-23 SQL Statements for Updates ADO.NET handles the complicated process of updating the original data source The Update method makes all of the indicated changes to the original data source for all rows that have a RowState other than Unchanged When a data source is added, several SQL statements are generated. SELECT INSERT DELETE UPDATE

9 Concurrency Occurs when more than one user can update a file at the same time Concurrency control is the process of handling conflicts in updates by multiple users Three types of concurrency controls in ADO.NET Pessimistic row is unavailable from the time the record is retrieved until the update is complete Optimistic row is unavailable only while an update is in progress (the default) Last in wins row is unavailable only when the update is being made 5-25 Testing Update Programs Many types of errors may be encountered when testing an Add or Update in an update program Must have proper rights to the database to allow writing to the data source Be aware of constraints which fields contain nulls, required fields, specific values in fields Include exception handling statements for all statements that access the database Display the exception message to help determine the cause of any problems 5-26 Updating a DataSet in Bound Controls Using bound individual controls is more common than using a grid Change the dataset field in bound text boxes so users can type in changes keep as Read Only unless an Add or Edit is in progress All of the techniques for updating a dataset apply equally to an Access database and a SQL Server database

10 Details View Update Program Form using buttons for navigation in an Update program Form using a combo box for selection 5-28 Update Logic Update program needs procedures to modify existing records (editing), deleting, and adding new records Call the Update method so that the data source is upto-date for every change Enclose all statements that access the database in Try/Catch blocks Limit the options available to users during an update While Add or Edit is in progress, the only options should be Save or Cancel While navigating from one record to another, don t allow changes to data 5-29 Add or Edit During an Add or Edit, the Add button becomes the Save button and the Delete button become the Cancel button; Edit button is disabled

11 Add Operation Pseudocode Call the BindingSource s AddNew method, which begins the Add and clears the text boxes Set addingboolean to True Set the focus to the first text box Disable navigation Set the text boxes ReadOnly Property to False Set up the buttons for an Add: Set up the Save and Cancel buttons Disable the Edit button Display Adding in the status bar 5-31 Edit Logic Display fields in bound text boxes Set the ReadOnly property of each text box to True, locking the text box For bound check boxes, lists, and grids set the Enabled property to False (no ReadOnly property) Disable navigation so users can t move off records and automatically save the changes The only choices a user should have during an Edit are Save or Cancel 5-32 Psuedocode to Begin an Edit Set editingboolean to True Disable navigation Set the text boxes ReadOnly property to False Set up the buttons for an Edit: Set up the Save and Cancel buttons Disable the Edit button Display Editing in the status bar

12 Validating User Input Data As users enter data, some fields need to be validated such as constraints, such as required fields, or data type There may be business rules for validating data Validating data before sending it back to the database can reduce the number of round trips between the application and the database Perform field-level or record-level validation in an event handler 5-34 Using a Combo Box for Selection (1 of 2) During navigation, the user can make a selection from the list but not make changes to the text NameComboBox.DropDownStyle _ = ComboBoxStyle.DropDownList During an Add or Edit, the user can change the text but not make a new selection from the list NameComboBox.DropDownStyle _ = ComboBoxStyle.Simple 5-35 Using a Combo Box for Selection (2 of 2) During navigation, making a new selection from the combo box should not update the dataset NameComboBox.DataBindings!text. _ DataSourceUpdateMode _ = DataSourceUpdateMode.Never During an Add or Edit, making a new selection from the combo box should update the dataset NameComboBox.DataBindings!text. _ DataSourceUpdateMode _ = DataSourceUpdateMode.OnValidation

13 Checking for Nulls Common problem for programming database updates relates to null fields If users do not enter data in a field that does not permit nulls and the record is sent to the database, an exception occurs Check to see which field allow nulls by: In the DataSet Designer click on each individual field and view the AllowDBNull property View settings for an entire table by using the Server Explorer Select View/Server Explorer to see the window, expand the nodes, right-click on table name and select Open Table Definition 5-37 Open Table Definition View and modify the table definition 5-38 ErrorProvider Component Displays an icon and a message for invalid data

14 Displaying a Message Using an ErrorProvider Add an ErrorProvider to the form Make sure that the CausesValidation property of most controls is set to True Set CausesValidation = False for the Cancel button In the Validating event handler for the control to validate, set e.cancel = True for bad data Makes the control sticky Also set the error message for the ErrorProvider Make sure to clear the error message when the control passes validation 5-40 Adding Validation to a DataGridView Program Validation concepts for data in a grid are similar to the detail view Must perform validation for the grid s CellValidating and RowValidating events CellValidating event occurs when the user moves across the row from one field to another RowValidating event occurs when the user attempts to move off the current row DataGridView control has the equivalent of a built-in error provider To display an error icon/message, set the cell s ErrorText property 5-41 Displaying Error Messages in a Grid Error icon and message

15 Updating Related Tables The Update method issues the proper INSERT, DELETE and UPDATE SQL commands for a single table If updating multiple tables, the program must take charge and issue the commands in the correct sequence 5-43 Parent and Child Relationships To maintain referential integrity, update in the following order: 1. Delete any child records 2. Insert, update, and delete the parent records 3. Insert and update the child records A parent or master can t be deleted if there are any associated child records 5-44 Cascading Deletes and Updates Help to maintain referential integrity Set up the relationship for cascading updates and cascading deletes in the Relation dialog box

16 The Related-Table Update Program A. B. C The Update Logic for Related Tables (1 of 2) First, save the deletes for child records create a new table that holds only the rows marked for deletion Use the GetChanges method of a table or dataset to request all rows with a specific row state Test for IsNot Nothing to determine whether the GetChanges method returned any rows If changes exist, assign the retrieved rows to the new table and specify the table name as the argument of the Update method 5-47 The Update Logic for Related Tables (2 of 2) Second, Save all updates for the parent table Check to determine that changes have been made Execute the Update method again for child record Adds and Edits '' Update child child Adds Adds and and Edits. If If PubsDataSet.sales.GetChanges(DataRowState.Added + _ DataRowState.Modified) IsNot IsNot Nothing Then Then '' Get Get changes for for the the added added and and edited child child rows rows only. only

17 Setting DataGridView Properties for the Update Program Hide a column in a DataGridView using the grid s Edit Columns dialog box Set the Visible property to False (will hide at run time) Don t hide columns that the user must be able to enter for an Add or Edit 5-49 Creating a Table Lookup Column (1 of 2) Use a combo box to hold the value the user selects a title from a list but cannot type a new entry 5-50 Creating a Table Lookup Column (2 of 2) In the Data Source Configuration Wizard select the fields from the table for lookup Drag the table to the form For the new DataGridView control, use the smart tag to select Edit Columns Click the Add button to add a new column Select Unbound column, enter a name and header text and select DataGridViewComboBoxColumn for Type Set the properties of the added column BindingSource, DisplayMember, DataPropertyName, ValueMember, DisplayStyle, MinimumWidth, and MaximumWidth

18 Considerations for Multitier Applications The form should contain only the code for formatting and displaying input and output for the user and perhaps input validation. (Update logic belongs in the data tier.) To create a combo box column for a table lookup, instantiate the object of type DataGridViewComboBox Column, set the properties and add it to the DataGridView s Columns collection A good way to guard against a user adding child records is to set the grid s Enabled property to False until the new parent has been saved 5-52 Navigation Code in a Related Table Update Perform navigation in the SelectedIndexChanged event handler (rather than SelectionChangeCommitted) SelectIndexChanged event occurs any time the combo box index changes Advantage: You can filter the table to always display the correct data for the combo box selection Disadvantage: The event occurs several times as the form and data are initialized. You must set up a Boolean variable and check for completed initialization 5-53 Security Considerations Do not provide a user with information that could be used to violate database security Don t use actual field names in error messages use descriptive names for the data items The practice of displaying ex.message in a Catch clause is useful for testing and debugging a program but should not appear in a production program because it may contain actual field names

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

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

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

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

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

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

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

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

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

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

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

How to work with data sources and datasets

How to work with data sources and datasets 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

More information

Chapter 2. Building Multitier Programs with Classes The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 2. Building Multitier Programs with Classes The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 2 Building Multitier Programs with Classes McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives Discuss object-oriented terminology Create your own class and instantiate

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

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

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

DataGridView FAQ.doc. DataGridView FAQ.doc

DataGridView FAQ.doc. DataGridView FAQ.doc DataGridView Control The DataGridView control is the new grid control for Windows Froms 2.0. It replaces the DataGrid control with an easy to use and extremely customizable grid that supports many of the

More information

Kendo UI. Builder by Progress : What's New

Kendo UI. Builder by Progress : What's New Kendo UI Builder by Progress : What's New Copyright 2017 Telerik AD. All rights reserved. July 2017 Last updated with new content: Version 2.0 Updated: 2017/07/13 3 Copyright 4 Contents Table of Contents

More information

Building Multitier Programs with Classes

Building Multitier Programs with Classes 2-1 2-1 Building Multitier Programs with Classes Chapter 2 This chapter reviews object-oriented programming concepts and techniques for breaking programs into multiple tiers with multiple classes. Objectives

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

Report Designer Report Types Table Report Multi-Column Report Label Report Parameterized Report Cross-Tab Report Drill-Down Report Chart with Static

Report Designer Report Types Table Report Multi-Column Report Label Report Parameterized Report Cross-Tab Report Drill-Down Report Chart with Static Table of Contents Report Designer Report Types Table Report Multi-Column Report Label Report Parameterized Report Cross-Tab Report Drill-Down Report Chart with Static Series Chart with Dynamic Series Master-Detail

More information

Release Notes ClearSQL (build 181)

Release Notes ClearSQL (build 181) August 14, 2018 Release Notes ClearSQL 7.1.2 (build 181) NEW FEATURES NEW: Exclusion of code lines from Flowcharts. It is now possible to exclude lines of code from a Flowchart diagram by defining exclusion

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

DbSchema Forms and Reports Tutorial

DbSchema Forms and Reports Tutorial DbSchema Forms and Reports Tutorial Contents Introduction... 1 What you will learn in this tutorial... 2 Lesson 1: Create First Form Using Wizard... 3 Lesson 2: Design the Second Form... 9 Add Components

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

Index. AutoNumber data types, 154 6, 168 and Number data type, 181 AutoPostBack Property, 505, 511, 513 5, 527 8, AVG, 242, 247 8

Index. AutoNumber data types, 154 6, 168 and Number data type, 181 AutoPostBack Property, 505, 511, 513 5, 527 8, AVG, 242, 247 8 Index A Access queries, 10, 146, 191, 212, 220, 426 7 query design view, 403 types, 190, 236 table design, 141 tables, 10, 133, 136, 150, 426 Access Data Object, 136 7, 148 Access database, 136 8 table,

More information

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 12 OOP: Creating Object- Oriented Programs McGraw-Hill Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Objectives (1 of 2) Use object-oriented terminology correctly. Create

More information

DbSchema Forms and Reports Tutorial

DbSchema Forms and Reports Tutorial DbSchema Forms and Reports Tutorial Introduction One of the DbSchema modules is the Forms and Reports designer. The designer allows building of master-details reports as well as small applications for

More information

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 14 Additional Topics in C# McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Validate user input in the Validating event handler and display messages

More information

You can also check the videos at the bottom of this page:

You can also check the videos at the bottom of this page: This document is provided to give you an idea what R-Tag Version Control can do and how you can use it. If you decide that you need more information or you prefer to see a demo of the software please do

More information

Imagine. Create. Discover. User Manual. TopLine Results Corporation

Imagine. Create. Discover. User Manual. TopLine Results Corporation Imagine. Create. Discover. User Manual TopLine Results Corporation 2008-2009 Created: Tuesday, March 17, 2009 Table of Contents 1 Welcome 1 Features 2 2 Installation 4 System Requirements 5 Obtaining Installation

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

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

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

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

DTS. The SQL Server 2000 client installation adds the necessary components for creating DTS packages. You can save your DTS packages to:

DTS. The SQL Server 2000 client installation adds the necessary components for creating DTS packages. You can save your DTS packages to: 11 DTS Data Transformation Services (DTS) is the most versatile tool included with SQL Server 2000. Most SQL Server professionals are first exposed to DTS via the DTS Import and Export Wizard; however,

More information

10Tec igrid for.net 6.0 What's New in the Release

10Tec igrid for.net 6.0 What's New in the Release What s New in igrid.net 6.0-1- 2018-Feb-15 10Tec igrid for.net 6.0 What's New in the Release Tags used to classify changes: [New] a totally new feature; [Change] a change in a member functionality or interactive

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

Copy Datatable Schema To Another Datatable Vb.net

Copy Datatable Schema To Another Datatable Vb.net Copy Datatable Schema To Another Datatable Vb.net NET Framework 4.6 and 4.5 The schema of the cloned DataTable is built from the columns of the first enumerated DataRow object in the source table The RowState

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

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In-

More information

Chapter 13. Additional Topics in Visual Basic The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 13. Additional Topics in Visual Basic The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 13 Additional Topics in Visual Basic McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives Write Windows applications that run on mobile devices Display database information

More information

Introduction to using Microsoft Expression Web to build data-aware web applications

Introduction to using Microsoft Expression Web to build data-aware web applications CT5805701 Software Engineering in Construction Information System Dept. of Construction Engineering, Taiwan Tech Introduction to using Microsoft Expression Web to build data-aware web applications Yo Ming

More information

Roxen Content Provider

Roxen Content Provider Roxen Content Provider Generation 3 Templates Purpose This workbook is designed to provide a training and reference tool for placing University of Alaska information on the World Wide Web (WWW) using the

More information

Ocean Wizards and Developers Tools in Visual Studio

Ocean Wizards and Developers Tools in Visual Studio Ocean Wizards and Developers Tools in Visual Studio For Geoscientists and Software Developers Published by Schlumberger Information Solutions, 5599 San Felipe, Houston Texas 77056 Copyright Notice Copyright

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

Dataflow Editor User Guide

Dataflow Editor User Guide - Cisco EFF, Release 1.0.1 Cisco (EFF) 1.0.1 Revised: August 25, 2017 Conventions This document uses the following conventions. Convention bold font italic font string courier font Indication Menu options,

More information

Application Aspect. Hierarchical DataGridView v1.7 BOOKLET

Application Aspect. Hierarchical DataGridView v1.7 BOOKLET Application Aspect Hierarchical DataGridView v1.7 BOOKLET Flexibility. Simplicity. Creativity." Our business philosophy relies on these three principles. We believe these three ideas influence each other

More information

Data Gr id Vie w C ont ro l

Data Gr id Vie w C ont ro l Data Gr id Vie w C ont ro l The DataGridView control is the new grid control for Windows Froms 2.0. It replaces the DataGrid control with an easy to use and extremely customizable grid that supports many

More information

CIS Intro to Programming in C#

CIS Intro to Programming in C# OOP: Creating Classes and Using a Business Tier McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Understand how a three-tier application separates the user interface from the business

More information

Microsoft Access 2010

Microsoft Access 2010 2013\2014 Microsoft Access 2010 Tamer Farkouh M i c r o s o f t A c c e s s 2 0 1 0 P a g e 1 Definitions Microsoft Access 2010 What is a database? A database is defined as an organized collection of data

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

Chapter 4: Single Table Form Lab

Chapter 4: Single Table Form Lab Chapter 4: Single Table Form Lab Learning Objectives This chapter provides practice with creating forms for individual tables in Access 2003. After this chapter, you should have acquired the knowledge

More information

Chapter 02 Building Multitier Programs with Classes

Chapter 02 Building Multitier Programs with Classes Chapter 02 Building Multitier Programs with Classes Student: 1. 5. A method in a derived class overrides a method in the base class with the same name. 2. 11. The Get procedure in a class module is used

More information

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc.

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc. KB_SQL Release Notes Version 4.3.Q2 Copyright 2003 by All rights reserved., Ashburn, Virginia, USA. Printed in the United States of America. No part of this manual may be reproduced in any form or by any

More information

FirePower 4.1. Woll2Woll Software Nov 3rd, Version 4.1 Supporting RAD Studio versions: XE7. FirePower 4.

FirePower 4.1. Woll2Woll Software Nov 3rd, Version 4.1 Supporting RAD Studio versions: XE7. FirePower 4. FirePower 4.1 FirePower 4.1 Page 1 Woll2Woll Software Nov 3rd, 2014 http://www.woll2woll.com Version 4.1 Supporting RAD Studio versions: XE7 Whats new in FirePower 4.1 vs 4.0 This updates redesigns the

More information

Administration. Training Guide. Infinite Visions Enterprise Edition phone toll free fax

Administration. Training Guide. Infinite Visions Enterprise Edition phone toll free fax Administration Training Guide Infinite Visions Enterprise Edition 406.252.4357 phone 1.800.247.1161 toll free 406.252.7705 fax www.csavisions.com Copyright 2005 2011 Windsor Management Group, LLC Revised:

More information

A. Local B. Module C. Regional D. Global. 2. What is the standard size of the 4GL screen?

A. Local B. Module C. Regional D. Global. 2. What is the standard size of the 4GL screen? The following sample questions are intended to give you an idea of the format and types of questions asked on the exam. Taking this assessment test can be a useful way for you to assess your skills and

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1. What s the advantage of using System.Text.StringBuilder over System.String? StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each

More information

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5)

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Section 6 AGENDA

More information

IBM i Version 7.2. Database Database overview IBM

IBM i Version 7.2. Database Database overview IBM IBM i Version 7.2 Database Database overview IBM IBM i Version 7.2 Database Database overview IBM Note Before using this information and the product it supports, read the information in Notices on page

More information

CO Environmental Web Application Users Help. March 2012 Updated June 2012 Updated March 2014

CO Environmental Web Application Users Help. March 2012 Updated June 2012 Updated March 2014 CO Environmental Web Application Users Help March 2012 Updated June 2012 Updated March 2014 Contents Welcome to CO Environmental... 1 About CO Env... 2 Logging in to the CO Env Web... 3 Changing Your Password...

More information

overview of, ASPNET User, Auto mode, 348 AutoIncrement property, 202 AutoNumber fields, 100 AVG function, 71

overview of, ASPNET User, Auto mode, 348 AutoIncrement property, 202 AutoNumber fields, 100 AVG function, 71 INDEX 431 432 Index A AcceptChanges method DataSet update and, 204 205, 206, 207 with ForeignKeyConstraint, 224 AcceptRejectRule, 224 Access/Jet engine, 27 Add method, 169 170, 203 204 Added enumeration,

More information

Access Made Easy. Forms.

Access Made Easy. Forms. Access Made Easy Forms 05 www.accessallinone.com This guide was prepared for AccessAllInOne.com by: Robert Austin This is one of a series of guides pertaining to the use of Microsoft Access. AXLSolutions

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

Table Basics. The structure of an table

Table Basics. The structure of an table TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that

More information

Contents. Properties: Field Area Fields Add a Table to a Form... 23

Contents. Properties: Field Area Fields Add a Table to a Form... 23 Workflow Design Guide Version 18 February 2018 Contents About This Guide... 7 Workflows and Forms Overview... 7 Security Permissions for Workflows and Forms... 8 Search for a Workflow Design, Workflow

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Jet Data Manager 2014 SR2 Product Enhancements

Jet Data Manager 2014 SR2 Product Enhancements Jet Data Manager 2014 SR2 Product Enhancements Table of Contents Overview of New Features... 3 New Features in Jet Data Manager 2014 SR2... 3 Improved Features in Jet Data Manager 2014 SR2... 5 New Features

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

Editing ITP MLR Address Table Files

Editing ITP MLR Address Table Files 16 CHAPTER You use the Cisco Mobile Wireless Transport Manager (MWTM) to configure Multi-Layer Routing (MLR) address table files by using the MWTM Address Table Editor. You can: Create new address table

More information

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24 Acknowledgments Introduction Chapter 1: Introduction to Access 2007 VBA 1 What Is Access 2007 VBA? 1 What s New in Access 2007 VBA? 2 Access 2007 VBA Programming 101 3 Requirements-Gathering Phase 3 Design

More information

.NET FRAMEWORK. Visual C#.Net

.NET FRAMEWORK. Visual C#.Net .NET FRAMEWORK Intro to.net Platform for the.net Drawbacks of Current Trend Advantages/Disadvantages of Before.Net Features of.net.net Framework Net Framework BCL & CLR, CTS, MSIL, & Other Tools Security

More information

IBM. Database Database overview. IBM i 7.1

IBM. Database Database overview. IBM i 7.1 IBM IBM i Database Database overview 7.1 IBM IBM i Database Database overview 7.1 Note Before using this information and the product it supports, read the information in Notices, on page 39. This edition

More information

POS Designer Utility

POS Designer Utility POS Designer Utility POS Designer Utility 01/15/2015 User Reference Manual Copyright 2012-2015 by Celerant Technology Corp. All rights reserved worldwide. This manual, as well as the software described

More information

The Scheduler & Hotkeys plugin PRINTED MANUAL

The Scheduler & Hotkeys plugin PRINTED MANUAL The Scheduler & Hotkeys plugin PRINTED MANUAL Scheduler & Hotkeys plugin All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including

More information

Chapter 1 Getting Started

Chapter 1 Getting Started Chapter 1 Getting Started The C# class Just like all object oriented programming languages, C# supports the concept of a class. A class is a little like a data structure in that it aggregates different

More information

About the Author... xiii Introduction... xiv Acknowledgments and Thanks... xv Terminology... xvii Sample Code... xvii

About the Author... xiii Introduction... xiv Acknowledgments and Thanks... xv Terminology... xvii Sample Code... xvii About the Author... xiii Introduction... xiv Acknowledgments and Thanks... xv Terminology... xvii Sample Code... xvii Part I: Getting Started... 1 Chapter 1: Setup and Parts of the Environment... 3 Starting

More information

Cross-loading of Legacy Data Using the Designer/2000 Repository Data Model OBJECTIVES ABSTRACT

Cross-loading of Legacy Data Using the Designer/2000 Repository Data Model OBJECTIVES ABSTRACT Cross-loading of Legacy Data Using the Designer/2000 Repository Data Model Jeffrey M. Stander ANZUS Technology International Presented at ODTUG 1996 Meeting OBJECTIVES To design and implement a methodology

More information

Release Notes. PREEvision. Version 6.5 SP11 English

Release Notes. PREEvision. Version 6.5 SP11 English Release Notes PREEvision Version 6.5 SP11 English Imprint Vector Informatik GmbH Ingersheimer Straße 24 70499 Stuttgart, Germany Vector reserves the right to modify any information and/or data in this

More information

EasyCatalog For Adobe InDesign

EasyCatalog For Adobe InDesign EasyCatalog For Adobe InDesign Relational Module User Guide 65bit Software Ltd Revision History Version Date Remarks 1.0.0 02 May 2008 First draft. 1.0.1 08 August 2008 First release. Copyright 2008 65bit

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

Find and Filter Records on a Form

Find and Filter Records on a Form Find and Filter Records on a Form Callahan Chapter 3 All About Me Review each form/report can have its own module Me a reference to the form/report whose code is currently executing eg: Me.AllowEdits =

More information

User Guide Product Design Version 1.7

User Guide Product Design Version 1.7 User Guide Product Design Version 1.7 1 INTRODUCTION 3 Guide 3 USING THE SYSTEM 4 Accessing the System 5 Logging In Using an Access Email 5 Normal Login 6 Resetting a Password 6 Logging Off 6 Home Page

More information

ArcGIS Extension User's Guide

ArcGIS Extension User's Guide ArcGIS Extension 2010 - User's Guide Table of Contents OpenSpirit ArcGIS Extension 2010... 1 Installation ( ArcGIS 9.3 or 9.3.1)... 3 Prerequisites... 3 Installation Steps... 3 Installation ( ArcGIS 10)...

More information

Introduction to Acumatica Framework

Introduction to Acumatica Framework Introduction to Acumatica Framework Training Guide T100 Introduction to Acumatica Framework 5.0 Contents 2 Contents Copyright...4 Introduction... 5 Getting Started...7 Application Programming Overview...

More information

Logi Ad Hoc Reporting System Administration Guide

Logi Ad Hoc Reporting System Administration Guide Logi Ad Hoc Reporting System Administration Guide Version 12 July 2016 Page 2 Table of Contents INTRODUCTION... 4 APPLICATION ARCHITECTURE... 5 DOCUMENT OVERVIEW... 6 GENERAL USER INTERFACE... 7 CONTROLS...

More information

Direct Connect and Dial-Up on Windows 98

Direct Connect and Dial-Up on Windows 98 N30 Supervisory Controller System Communications Manual 689.3 Application Notes Section Issue Date 0101 APPLICATION NOTE Direct Connect and Dial-Up on Windows 98 Direct Connect and Dial-Up on Windows 98...3

More information

Perceptive Intelligent Capture Project Migration Tool. User Guide. Version: 2.0.x

Perceptive Intelligent Capture Project Migration Tool. User Guide. Version: 2.0.x Perceptive Intelligent Capture Project Migration Tool User Guide Version: 2.0.x Written by: Product Knowledge, R&D Date: May 2015 2015 Lexmark International Technology, S.A. All rights reserved. Lexmark

More information

Assembling a Three-Tier Web Form Application

Assembling a Three-Tier Web Form Application Chapter 16 Objectives Assembling a Three-Tier Application In this chapter, you will: Understand the concept of state for Web applications Create an ASP.NET user control Use data binding technology Develop

More information

Contents. Add a Form Element to a Group Box Add a Field to a Form... 22

Contents. Add a Form Element to a Group Box Add a Field to a Form... 22 Workflow Design Guide Version 17 November 2017 Contents About This Guide... 7 Workflows and Forms Overview... 7 Security Permissions for Workflows and Forms... 8 Search for a Workflow Design, Workflow

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

Chapter 2. DB2 concepts

Chapter 2. DB2 concepts 4960ch02qxd 10/6/2000 7:20 AM Page 37 DB2 concepts Chapter 2 Structured query language 38 DB2 data structures 40 Enforcing business rules 49 DB2 system structures 52 Application processes and transactions

More information

Quick & Simple Imaging. User Guide

Quick & Simple Imaging. User Guide Quick & Simple Imaging User Guide The Quick & Simple Imaging software package provides the user with a quick and simple way to search and find their documents, then view, print, add notes, or even e- mail

More information

Logi Ad Hoc Reporting System Administration Guide

Logi Ad Hoc Reporting System Administration Guide Logi Ad Hoc Reporting System Administration Guide Version 10.3 Last Updated: August 2012 Page 2 Table of Contents INTRODUCTION... 4 Target Audience... 4 Application Architecture... 5 Document Overview...

More information

Component Templates. The Component Template Item Type. Modified by Jason Howie on 31-May-2017

Component Templates. The Component Template Item Type. Modified by Jason Howie on 31-May-2017 Component Templates Old Content - see latest equivalent Modified by Jason Howie on 31-May-2017 Altium Vault 2.5, in conjunction with Altium Designer 15.1, brings support for creating and defining Component

More information

Lab 5: ASP.NET 2.0 Profiles and Localization

Lab 5: ASP.NET 2.0 Profiles and Localization Lab 5: ASP.NET 2.0 Profiles and Localization Personalizing content for individual users and persisting per-user data has always been a non-trivial undertaking in Web apps, in part due to the stateless

More information

Management Reports Centre. User Guide. Emmanuel Amekuedi

Management Reports Centre. User Guide. Emmanuel Amekuedi Management Reports Centre User Guide Emmanuel Amekuedi Table of Contents Introduction... 3 Overview... 3 Key features... 4 Authentication methods... 4 System requirements... 5 Deployment options... 5 Getting

More information

Kendo UI. Builder by Progress : Using Kendo UI Designer

Kendo UI. Builder by Progress : Using Kendo UI Designer Kendo UI Builder by Progress : Using Kendo UI Designer Copyright 2017 Telerik AD. All rights reserved. December 2017 Last updated with new content: Version 2.1 Updated: 2017/12/22 3 Copyright 4 Contents

More information