Practical Database Programming with Visual Basic.NET

Size: px
Start display at page:

Download "Practical Database Programming with Visual Basic.NET"

Transcription

1

2

3 Practical Database Programming with Visual Basic.NET

4 IEEE Press 445 Hoes Lane Piscataway, NJ IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson B. M. Hammerli W. Reeve F. Canavero M. Lanzerotti T. Samad T. G. Croda O. Malik G. Zobrist Kenneth Moore, Director of IEEE Book and Information Services (BIS)

5 Practical Database Programming with Visual Basic.NET Second Edition Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication

6 Copyright 2012 by the Institute of Electrical and Electronics Engineers, Inc. Published by John Wiley & Sons, Inc., Hoboken, New Jersey. All rights reserved. Published simultaneously in Canada. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) , fax (978) , or on the web at Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) , fax (201) , or online at Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages. For general information on our other products and services or for technical support, please contact our Customer Care Department within the United States at (800) , outside the United States at (317) or fax (317) Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic formats. For more information about Wiley products, visit our web site at www. wiley.com. Library of Congress Cataloging-in-Publication Data: Bai, Ying, 1956 Practical database programming with Visual Basic.NET / Ying Bai. 2nd ed. p. cm. ISBN (pbk.) 1. Microsoft Visual BASIC. 2. BASIC (Computer program language) 3. Microsoft.NET. 4. Database design. I. Title. QA76.73.B3B '768 dc Printed in United States of America

7 This book is dedicated to my wife, Yan Wang, and my daughter, Xue Bai.

8

9 Contents Preface xxv Acknowledgments xxvii Chapter 1 Introduction 1 Outstanding Features about This Book 2 Who This Book Is For 2 What This Book Covers 2 How This Book Is Organized and How to Use This Book 5 How to Use the Source Code and Sample Databases 6 Instructors and Customers Supports 8 Chapter 2 Introduction to Databases What Are Databases and Database Programs? File Processing System Integrated Databases Develop a Database Sample Database Relational Data Model Entity-Relationship Model Identifying Keys Primary Key and Entity Integrity Candidate Key Foreign Keys and Referential Integrity Define Relationships Connectivity ER Notation Data Normalization First Normal Form (1NF) Second Normal Form (2NF) Third Normal Form (3NF) 24 vii

10 viii Contents 2.8 Database Components in Some Popular Databases Microsoft Access Databases Database File Tables Queries SQL Server Databases Data Files Tables Views Stored Procedures Keys and Relationships Indexes Transaction Log Files Oracle Databases Data Files Tables Views Stored Procedures Indexes Initialization Parameter Files Control Files Redo Log Files Password Files Create Microsoft Access Sample Database Create the LogIn Table Create the Faculty Table Create the Other Tables Create Relationships among Tables Create Microsoft SQL Server 2008 Sample Database Create the LogIn Table Create the Faculty Table Create Other Tables Create Relationships among Tables Create Relationship between the LogIn and the Faculty Tables Create Relationship between the LogIn and the Student Tables Create Relationship between the Faculty and the Course Tables Create Relationship between the Student and the StudentCourse Tables Create Relationship between the Course and the StudentCourse Tables Create Oracle 11g XE Sample Database Create a New Oracle Customer User or User Account Create New Customer Sample Database CSE_DEPT Create the LogIn Data Table Create the Faculty Data Table Create Other Tables Create the Constraints between Tables 78

11 Contents ix Create the Constraints between the LogIn and Faculty Tables Create the Constraints between the LogIn and Student Tables Create the Constraints between the Course and Faculty Tables Create the Constraints between the StudentCourse and Student Tables Create the Constraints between the StudentCourse and Course Tables Chapter Summary 87 Homework 88 Chapter 3 Introduction to ADO.NET The ADO and ADO.NET Overview of ADO.NET The Architecture of ADO.NET The Components of ADO.NET The Data Provider The ODBC Data Provider The OLEDB Data Provider The SQL Server Data Provider The Oracle Data Provider The Connection Class The Open() Method of the Connection Class The Close() Method of the Connection Class The Dispose() Method of the Connection Class The Command and the Parameter Classes The Properties of the Command Class The Constructors and Properties of the Parameter Class Parameter Mapping The Methods of the ParameterCollection Class The Constructor of the Command Class The Methods of the Command Class The DataAdapter Class The Constructor of the DataAdapter Class The Properties of the DataAdapter Class The Methods of the DataAdapter Class The Events of the DataAdapter Class The DataReader Class The DataSet Component The DataSet Constructor The DataSet Properties The DataSet Methods The DataSet Events The DataTable Component The DataTable Constructor The DataTable Properties 125

12 x Contents The DataTable Methods The DataTable Events ADO.NET Entity Framework Advantages of Using the Entity Framework The ADO.NET 4.1 Entity Data Model Using the ADO.NET 4.1 Entity Data Model Wizard Chapter Summary 145 Homework 146 Chapter 4 Introduction to Language Integrated Query (LINQ) Overview of Language Integrated Query Some Special Interfaces Used in LINQ The IEnumerable and IEnumerable(Of T) Interfaces The IQueryable and IQueryable(Of T) Interfaces Standard Query Operators Deferred Standard Query Operators AsEnumerable (Conversion Purpose) Cast (Conversion Purpose) Join (Join Purpose) OfType (Conversion Purpose) OrderBy (Ordering Purpose) Select (Projection Purpose) Where (Restriction Purpose) Nondeferred Standard Query Operators ElementAt (Element Purpose) First (Element Purpose) Last (Element Purpose) Single (Element Purpose) ToArray (Conversion Purpose) ToList (Conversion Purpose) Introduction to LINQ Query The Architecture and Components of LINQ Overview of LINQ to Objects Overview of LINQ to DataSet Overview of LINQ to SQL Overview of LINQ to Entities Overview of LINQ to XML LINQ to Objects LINQ and ArrayList LINQ and Strings Query a String to Determine the Number of Numeric Digits Sort Lines of Structured Text by any Field in the Line LINQ and File Directories Query the Contents of Files in a Folder LINQ and Reflection 177

13 4.5 LINQ to DataSet Operations to DataSet Objects Query Expression Syntax Method-Based Query Syntax Query the Single Table Query the Cross Tables Query Typed DataSet Operations to DataRow Objects Using the Extension Methods Operations to DataTable Objects LINQ to SQL LINQ to SQL Entity Classes and DataContext Class LINQ to SQL Database Operations Data Selection Query Data Insertion Query Data Updating Query Data Deletion Query LINQ to SQL Implementations LINQ to Entities The Object Services Component The ObjectContext Component The ObjectQuery Component LINQ to Entities Flow of Execution Construct an ObjectQuery Instance Compose a LINQ to Entities Query Convert the Query to Command Trees Execute the Query Materialize the Query Implementation of LINQ to Entities LINQ to XML LINQ to XML Class Hierarchy Manipulate XML Elements Creating XML from Scratch Insert XML Update XML Delete XML Manipulate XML Attributes Add XML Attributes Get XML Attributes Delete XML Attributes Query XML with LINQ to XML Standard Query Operators and XML XML Query Extensions Using Query Expressions with XML Using XPath and XSLT with LINQ to XML Mixing XML and Other Data Models 225 Contents xi

14 xii Contents 4.9 Visual Basic.NET Language Enhancement for LINQ Lambda Expressions Extension Methods Implicitly Typed Local Variables Query Expressions Chapter Summary 236 Homework 237 Chapter 5 Data Selection Query with Visual Basic.NET 241 Part I Data Query with Visual Studio.NET Design Tools and Wizards A Completed Sample Database Application Example Visual Studio.NET Design Tools and Wizards Data Components in the Toolbox Window The DataSet DataGridView BindingSource BindingNavigator TableAdapter Data Source Window Add New Data Sources Data Source Configuration Wizard DataSet Designer Query Data from SQL Server Database Using Design Tools and Wizards Application User Interface The LogIn Form The Selection Form The Faculty Form The Course Form The Student Form Add and Utilize Visual Studio Wizards and Design Tools Add and Configure a New Data Source Query and Display Data using the DataGridView Control View the Entire Table View Each Record or the Specified Columns Use DataSet Designer to Edit the Structure of the DataSet Bind Data to the Associated Controls in LogIn Form Develop Codes to Query Data Using the Fill() Method Use Return a Single Value to Query Data for LogIn Form Develop the Codes for the Selection Form Query Data from the Faculty Table for the Faculty Form Develop Codes to Query Data from the Faculty Table Develop Codes to Query Data Using the TableAdapter Method Develop Codes to Query Data Using the LINQ to DataSet Method Display a Picture for the Selected Faculty Modify the Codes for the Select Button Event Procedure Create a Function to Select the Matched Faculty Image 293

15 Contents xiii 5.14 Query Data from the Course Table for the Course Form Build the Course Queries Using the Query Builder Bind Data Columns to the Associated Controls in the Course Form Develop Codes to Query Data for the Course Form Query Data from the Course Table Using the TableAdapter Method Query Data from the Course Table Using the LINQ to DataSet Method Query Data from Oracle Database Using Design Tools and Wizards Introduction to dotconnect for Oracle 6.30 Express Create a New Visual Basic.NET Project: SelectWizardOracle Select and Add Oracle Database 11g XE as the Data Source Modify the Codes to Access the Oracle Database 310 Part II Data Query with Runtime Objects Introduction to Runtime Objects Procedure of Building a Data-Driven Application Using Runtime Object Query Data from Microsoft Access Database Using Runtime Object Query Data Using Runtime Objects for the LogIn Form Declare Global Variables and Runtime Objects Connect to the Data Source with the Runtime Object Coding for Method 1: Using DataSet-TableAdapter to Query Data Coding for Method 2: Using the DataReader to Query Data Clean up the Objects and Terminate the Project Coding for the Selection Form Query Data Using Runtime Objects for the Faculty Form Query Data Using Runtime Objects for the Course Form Query Data Using Runtime Objects for the Student Form Coding for the Student Form_Load Event Procedure Coding for the Select Button Click Event Procedure Query Data from SQL Server Database Using Runtime Object Migrating from Access to SQL Server and Oracle Databases Query Data Using Runtime Objects for the LogIn Form Declare the Runtime Objects Connect to the Data Source with the Runtime Object Coding for Method 1: Using the TableAdapter to Query Data Coding for Method 2: Using the DataReader to Query Data The Coding for the Selection Form Query Data Using Runtime Objects For the Faculty Form Query Data Using Runtime Objects for the Course Form Retrieve Data from Multiple Tables Using Tables JOINS Query Data Using Runtime Objects for the Student Form 367

16 xiv Contents Query Student Data Using Stored Procedures Create the Stored Procedure Call the Stored Procedure Query Data Using Stored Procedures for Student Form Query Data Using More Complicated Stored Procedures Query Data from Oracle Database Using Runtime Object Install and Configure the Oracle Database 11g Express Edition Configure the Oracle Database Connection String Query Data Using Runtime Objects for the LogIn Form Declare the Runtime Objects and Modify the ConnModule Connect to the Data Source with the Runtime Object Coding for Method 1: Using the TableAdapter to Query Data Coding for Method 2: Using the DataReader to Query Data The Coding for the Selection Form Query Data Using Runtime Objects for the Faculty Form Query Data Using Runtime Objects and LINQ to DataSet for the Course Form The Stored Procedures in Oracle Database Environment The Syntax of Creating a Stored Procedure in the Oracle The Syntax of Creating a Package in the Oracle Create the Faculty_Course Package for the Course Form Query Data Using the Oracle Package For the Course Form Chapter Summary 411 Homework 413 Chapter 6 Data Inserting with Visual Basic.NET 417 Part I Data Inserting with Visual Studio.NET Design Tools and Wizards Insert Data into a Database Insert New Records into a Database Using the TableAdapter.Insert Method Insert New Records into a Database Using the TableAdapter.Update Method Insert Data into the SQL Server Database Using a Sample Project InsertWizard Create New Project Based on the SelectWizard Project Application User Interfaces Validate Data Before the Data Insertion Visual Basic Collection and.net Framework Collection Classes Validate Data Using the Generic Collection Initialization Coding for the Data Insertion Build the Insert Query Configure the TableAdapter and Build the Data Inserting Query Develop Codes to Insert Data Using the TableAdapter.Insert Method 427

17 Contents xv Develop Codes to Insert Data Using the TableAdapter.Update Method Insert Data into the Database Using the Stored Procedures Create the Stored Procedure Using the TableAdapter Query Configuration Wizard Modify the Codes to Perform the Data Insertion Using the Stored Procedure Insert Data into the Oracle Database Using a Sample Project InsertWizardOracle 441 Part II Data Insertion with Runtime Objects The General Runtime Objects Method Insert Data into the SQL Server Database Using the Runtime Object Method Insert Data into the Faculty Table for the SQL Server Database Develop the Codes to Insert Data into the Faculty Table Insert Data into the Microsoft Access Database Using the Runtime Objects Modify the Imports Commands and the ConnModule Modify the Database Connection String Modify the LogIn Query Strings Modify the Faculty Query String Modify the Faculty Insert String Modifications to Other Forms Insert Data into the Oracle Database Using the Runtime Objects Add the Oracle Driver Reference and Modify the Imports Commands Modify the Database Connection String Modify the LogIn Query Strings Modify the Faculty Query String and Query Related Codes Modify the Faculty Insert String and Insertion Related Codes Modifications to Other Forms Modify the Codes in the Selection Form Modify the Codes in the Course Form Modify the Codes in the Student Form Modify the Codes in the SP Form Insert Data into the Database Using Stored Procedures Insert Data into the SQL Server Database Using Stored Procedures Develop Stored Procedures of SQL Server Database Develop Codes to Call Stored Procedures to Insert Data into the Course Table Insert Data into the Oracle Database Using Stored Procedures Develop Stored Procedures in Oracle Database Develop Codes to Call Stored Procedures to Insert Data into the Course Table 483

18 xvi Contents 6.9 Insert Data into the Database Using the LINQ to DataSet Method Insert Data Into the SQL Server Database Using the LINQ to SQL Queries Chapter Summary 488 Homework 489 Chapter 7 Data Updating and Deleting with Visual Basic.NET 493 Part I Data Updating and Deleting with Visual Studio.NET Design Tools and Wizards Update or Delete Data Against Databases Updating and Deleting Data from Related Tables in a DataSet Update or Delete Data Against Database Using TableAdapter DBDirect Methods: TableAdapter.Update and TableAdapter.Delete Update or Delete Data Against Database Using TableAdapter.Update Method Update and Delete Data for Microsoft SQL Server Database Create a New Project Based on the InsertWizard Project Application User Interfaces Validate Data before the Data Updating and Deleting Build the Update and Delete Queries Configure the TableAdapter and Build the Data Updating Query Build the Data Deleting Query Develop Codes to Update Data Using the TableAdapter DBDirect Method Modifications of the Codes Creations of the Codes Develop Codes to Update Data Using the TableAdapter.Update Method Develop Codes to Delete Data Using the TableAdapter DBDirect Method Develop Codes to Delete Data Using the TableAdapter.Update Method Validate the Data after the Data Updating and Deleting Update and Delete Data for Oracle Database Update and Delete Data for Microsoft Access Database 512 Part II Data Updating and Deleting with Runtime Objects The Runtime Objects Method Update and Delete Data for SQL Server Database Using the Runtime Objects Update Data Against the Faculty Table for the SQL Server Database Develop Codes to Update the Faculty Data Validate the Data Updating 516

19 Contents xvii Delete Data from the Faculty Table for the SQL Server Database Develop Codes to Delete Data Validate the Data Deleting Update and Delete Data for Oracle Database Using the Runtime Objects Add the Oracle Namespace Reference and Modify the Imports Command Modify the Connection String and Query String for the LogIn Form Modify the Connection String in the Form Load Event Procedure Modify the SELECT Query String in the TabLogIn Button Event Procedure Modify the SELECT Query String in the ReadLogIn Button Event Procedure Modify the Query Strings for the Faculty Form Modify the SELECT Query String for the Select Button Event Procedure Modify the INSERT Query String for the Insert Button Event Procedure Modify the UPDATE Query String for the Update Button Event Procedure Modify the DELETE Query String for the Delete Button Event Procedure Modify the Query Strings for the Course Form Modify the SELECT Query String for the Select Button Event Procedure Modify the SELECT Query String for the CourseList Event Procedure Modify the Query Strings for the Student Form Other Modifications Update and Delete Data Against Database Using Stored Procedures Update and Delete Data Against SQL Server Database Using Stored Procedures Modify the Existing Project to Create Our New Project Modify the Codes to Update and Delete Data from the Faculty Table Develop Two Stored Procedures in the SQL Server Database Call the Stored Procedures to Perform the Data Updating and Deleting Update and Delete Data Against Oracle Database Using Stored Procedures Modify the Existing Project to Create Our New Project Modify the Codes to Update and Delete Data from the Faculty Table Develop Stored Procedures in the Oracle Database Call the Stored Procedure to Perform the Data Updating and Deleting 546

20 xviii Contents Update and Delete Data Against Databases Using the LINQ to SQL Query Create a New Object of the DataContext Class Develop the Codes for the Select Button Click Event Procedure Develop the Codes for the Update Button Click Event Procedure Develop the Codes for the Delete Button Click Event Procedure Chapter Summary 554 Homework 555 Chapter 8 Accessing Data in ASP.NET What Is the.net Framework? What Is ASP.NET? ASP.NET Web Application File Structure ASP.NET Execution Model What Really Happens When a Web Application Is Executed? The Requirements to Test and Run the Web Project Develop ASP.NET Web Application to Select Data from SQL Server Databases Create the User Interface: LogIn Form Develop the Codes to Access and Select Data from the Database Validate the Data in the Client Side Create the Second User Interface: Selection Page Develop the Codes to Open the Other Page Modify the Codes in the LogIn Page to Transfer to the Selection Page Create the Third User Interface: Faculty Page Develop the Codes to Select the Desired Faculty Information Develop the Codes for the Page_Load Event Procedure Develop the Codes for the Select Button Event Procedure Develop the Codes for Other Procedures Create the Fourth User Interface: Course Page The AutoPostBack Property of the List Box Control Develop the Codes to Select the Desired Course Information Coding for the Course Page Loading and Ending Event Procedures Coding for the Select Button s Click Event Procedure Coding for the SelectedIndexChanged Event Procedure of the CourseList Box Coding for Other User-Defined Subroutine Procedures Develop ASP.NET Web Application to Insert Data into SQL Server Databases Develop the Codes to Perform the Data Insertion Function Develop the Codes for the Insert Button Click Event Procedure Modify the Codes in the Subroutine ShowFaculty() for the Data Validation Validate the Data Insertion 602

21 Contents xix 8.5 Develop Web Applications to Update and Delete Data in SQL Server Databases Modify the Codes for the Faculty Page Develop the Codes for the Update Button Click Event Procedure Develop the Codes for the Delete Button Click Event Procedure Relationships between Five Tables in Our Sample Database Data Deleting Sequence Use the Cascade Deleting Option to Simplify the Data Deleting Create the Stored Procedure to Perform the Data Deleting Develop the Codes to Call the Stored Procedure to Perform the Data Deleting Develop ASP.NET Web Applications with LINQ to SQL Query Add an Existing Web Page FacultyLINQ.aspx Create a New Object of the DataContext Class Develop the Codes for the Data Selection Query Develop the Codes for the Data Insertion Query Develop the Codes for the Data Updating and Deleting Queries Develop ASP.NET Web Application to Select Data from Oracle Databases Add the Oracle Database Reference and Modify Imports Commands Modify the Connection String in the LogIn Page Modify the Query String in the LogIn Page Modify the Query String in the Faculty Page Modify the Query Strings in the Course Page Modify the Global Connection Object in the Selection Page Develop ASP.NET Web Application to Insert Data into Oracle Databases Create the Codes for the Insert Button Click Event Procedure Create the Codes for the TextChanged Event Procedure of the Faculty ID Textbox Modify the Codes in the Subroutine ShowFaculty() for the Data Validation Develop ASP.NET Web Application to Update and Delete Data in Oracle Databases Build the Codes for the Project to Perform the Data Updating Modifications to the Select Button s Click Event Procedure Add the Codes to the Update Button Event and UpdateParameters Procedures Develop Stored Procedures to Perform the Data Deleting Delete an Existing Record from the Faculty Table Develop the Codes for the Delete Button s Event Procedure Validate the Data Deleting Actions The Constraint Property: On Delete Cascade in the Data Table Chapter Summary 653 Homework 654

22 xx Contents Chapter 9 ASP.NET Web Services What Are Web Services and Their Components? Procedures to Build a Web Service The Structure of a Typical Web Service Project The Real Considerations When Building a Web Service Project Introduction to Windows Communication Foundation (WCF) What Is WCF? WCF Data Services WCF Services WCF Clients WCF Hosting WCF Visual Studio Templates Procedures to Build an ASP.NET Web Service Build ASP.NET Web Service Project to Access SQL Server Database Files and Items Created in the New Web Service Project A Feeling of the Hello World Web Service Project As it Runs Modify the Default Namespace Create a Base Class to Handle Error Checking for Our Web Service Create the Real Web Service Class Add Web Methods into Our Web Service Class Develop the Codes for Web Methods to Perform the Web Services Web Service Connection Strings Modify the Existing HelloWorld Web Method Develop the Codes to Perform the Database Queries Develop the Codes for Subroutines Used in the Web Method Develop the Stored Procedure to Perform the Data Query Develop the Stored Procedure WebSelectFacultySP Add Another Web Method to Call the Stored Procedure Use DataSet as the Returning Object for the Web Method Build Windows-Based Web Service Clients to Consume the Web Services Create a Web Service Proxy Class Develop the Graphic User Interface for the Windows-Based Client Project Develop the Code to Consume the Web Service Build Web-Based Web Service Clients to Consume the Web Service Create a New Web Site Project and Add an Existing Web Page Add a Web Service Reference and Modify the Web Form Window Modify the Codes for the Related Event Procedures Deploy the Completed Web Service to Production Servers Copy Web Service Files to the Virtual Directory Publish Precompiled Web Service 713

23 Contents xxi 9.4 Build ASP.NET Web Service Project to Insert Data into SQL Server Database Modify an Existing Web Service Project Develop the Web Service Methods Develop and Modify the Codes for the Code-Behind Page Develop and Modify the First Web Method SetSQLInsertSP Develop the Second Web Method GetSQLInsert Develop the Third Web Method SQLInsertDataSet Develop the Fourth Web Method GetSQLInsertCourse Build Windows-Based Web Service Clients to Consume the Web Services Create a Windows-Based Consume Project and a Web Service Proxy Class Develop the Graphic User Interface for the Client Project Develop the Code to Consume the Web Service Build Web-Based Web Service Clients to Consume the Web Services Create a New Web Site Project and Add an Existing Web Page Add a Web Service Reference and Modify the Web Form Window Modify the Codes for the Related Event Procedures Build ASP.NET Web Service to Update and Delete Data for SQL Server Database Modify an Existing Web Service Project Guideline in Modifying Related Web Methods Modify the Web Method from SetSQLInsertSP to SQLUpdataSP Modify the Web Method GetSQLInsert to GetSQLCourse Modify the Web Method GetSQLInsertCourse to GetSQLCourseDetail Add a New Web Method SQLDeleteSP Develop Two Stored Procedures WebUpdateCourseSP and WebDeleteCourseSP Develop the Stored Procedure WebUpdateCourseSP Develop the Stored Procedure WebDeleteCourseSP Build Windows-Based Web Service Clients to Consume the Web Services Modifications to the File Folder and Project Files Add a New Web Reference to Our Client Project Modify the Codes for the Different Event Procedures and Subroutines Modify the Codes of the Form_Load Event Procedure and Form-Level Variables Modify the Codes for the Select Button Click Event Procedure and Related User-defined Subroutine Procedures Remove the Insert Button Click Event Procedure Modify the Codes for the SelectedIndexChanged Event Procedure Develop the Codes for the Update Button Event Procedure Develop the Codes for the Delete Button Event Procedure 790

24 xxii Contents 9.7 Build Web-Based Web Service Clients to Consume the Web Services Create a New Web Site Project and Add an Existing Web Page Add a Web Service Reference and Modify the Web Form Window Modify the Codes for the Related Event Procedures and Subroutines Modify the Codes in the Page_Load Event Procedure Modify Codes in the Select Button Event Procedure and Related Subroutines Modify the Codes in the SelectedIndexChanged Event Procedure of the Course List Box Control and Related Subroutines Remove the Insert Button Click Event Procedure and the TextChanged Event Procedure of the Course ID Textbox Develop Codes for the Update Button Click Event Procedure Develop Codes for the Delete Button Click Event Procedure Build ASP.NET Web Service Project to Access Oracle Database Build a Web Service Project WebServiceOracleSelect Modify the Connection String Add Oracle Database References and Modify the Namespace Directories Modify the Web Method GetSQLSelect and Related Subroutines Modify the Web Method GetSQLSelectSP and Related Subroutines Modifications to the Stored Procedure WebSelectFacultySP Modifications to the Codes in the Web Method GetSQLSelectSP Modify the Web Method GetSQLSelectDataSet Build Web Service Client Projects to Consume the Web Service Build ASP.NET Web Service Project to Insert Data into Oracle Database Build a Web Service Project WebServiceOracleInsert Modify the Connection String Add Oracle Database Reference and Modify the Namespace Directories Modify the Web Method SetSQLInsertSP and Related Subroutines Modify the Web Method GetSQLInsert and Related Subroutines Modify the Web Method SQLInsertDataSet Modify the Web Method GetSQLInsertCourse and Related Subroutines Build the Oracle Package WebSelectCourseSP Build Web Service Client Projects to Consume the Web Service Build ASP.NET Web Service to Update and Delete Data for the Oracle Database Build a Web Service Project WebServiceOracleUpdateDelete Modify the Connection String Add Oracle Database Reference and Modify the Namespace Directories Modify the Web Method SQLUpdateSP and Related Subroutines Develop the Stored Procedure UpdateCourse_SP 842

25 Contents xxiii Modify the Web Method GetSQLCourse and Related Subroutines Modify the Web Method GetSQLCourseDetail and Related Subroutines Modify the Web Method SQLDeleteSP Develop the Stored Procedure WebDeleteCourseSP Build Web Service Client Projects to Consume the Web Service Chapter Summary 856 Homework 857 Index 860 About the Author 868

26

27 Preface Databases have become an integral part of our modern day life. We are an informationdriven society. Database technology has a direct impact on our daily lives. Decisions are routinely made by organizations based on the information collected and stored in databases. A record company may decide to market certain albums in selected regions based on the music preference of teenagers. Grocery stores display more popular items at the eye level, and reorders are based on the inventories taken at regular intervals. Other examples include patients records in hospitals, customers account information in banks, book orders by the libraries, club memberships, auto part orders, winter cloth stock by department stores, and many others. In addition to database management systems, in order to effectively apply and implement databases in real industrial or commercial systems, a good graphic user interface (GUI) is needed to allow users to access and manipulate their records or data in databases. Visual Basic.NET is an ideal candidate to be selected to provide this GUI functionality. Unlike other programming languages, Visual Basic.NET is a kind of language that has advantages, such as easy-to-learn and easy-to-be-understood with little learning curves. Beginning of Visual Studio.NET 2005, Microsoft integrated a few programming languages such as Visual C++, Visual Basic, C#, and Visual J# into a dynamic model called.net Framework that makes Internet and Web programming easy and simple, and any language integrated in this model can be used to develop professional and efficient Web applications that can be used to communicate with others via the Internet. ADO.NET and ASP.NET are two important submodels of.net Framework. The former provides all components, including the Data Providers, DataSet, and DataTable, to access and manipulate data against different databases. The latter provides support to develop Web applications and Web services in the ASP.NET environment to allow users to exchange information between clients and servers easily and conveniently. This book is mainly designed for college students and software programmers who want to develop practical and commercial database programming with Visual Basic.NET and relational databases, such as Microsoft Access, SQL Server 2008, and Oracle Database 11 g XE. The book provides a detailed description about the practical considerations and applications in database programming with Visual Basic.NET 2010 with authentic examples and detailed explanations. More important, a new writing style is developed and implemented in this book, combined with real examples, to provide readers with a clear picture as how to handle the database programming issues in Visual Basic.NET 2010 environment. xxv

28 xxvi Preface The outstanding features of this book include, but not limited to: 1. A novel writing style is adopted to try to attract students or beginning programmers interesting in learning and developing practical database programs, and to avoid the headache caused by using huge blocks of codes in the traditional database programming books. 2. Updated database programming tools and components are covered in the book, such as.net Framework 4.0, LINQ, ADO.NET 4.0, and ASP.NET 4.0, to enable readers to easily and quickly learn and master advanced techniques in database programming and develop professional and practical database applications. 3. A real completed sample database CSE_DEPT with three versions, Microsoft Access 2007, SQL Server 2008, and Oracle Database 11 g XE, is provided and used for entire book. Step by step, a detailed illustration and description about how to design and build a practical relational database is provided. 4. Covered both fundamental and advanced database programming techniques to convenience both beginning students and experienced programmers. 5. Various actual data providers are discussed and implemented in the sample projects, such as the SQL Server and Oracle data providers. Instead of using the OleDb to access the SQL Server or Oracle databases, the real SQL Server and Oracle data providers are utilized to connect to the Visual Basic.NET 2010 directly to perform data operations. 6. Good textbook for college students, and good reference book for programmers, software engineers, and academic researchers. I sincerely hope that this book can provide useful and practical helps and guides to all readers or users who adopted this book, and I will be more than happy to know that you can develop and build professional and practical database applications with the help of this book. Ying Bai

29 Acknowledgments The first and most special thanks to my wife, Yan Wang. I could not finish this book without her sincere encouragement and support. Special thanks to Dr. Satish Bhalla, who is the chapter contributor for this book. Dr. Bhalla is a specialist in database programming and management, especially in SQL Server, Oracle, and DB2. Dr. Bhalla spent a lot of time to prepare materials for Chapter 2, and he is deserving of thanks. Many thanks to Senior Editor Taisuke Soda and Associate Editor Mary Hatcher who made this book available to the public. You would not find this book in the market without their deep perspective and hard work. The same thanks are extended to the editorial team of this book. Without their contributions, it is impossible for this book to be published. These thanks should also be extended to the following book reviewers for their precious opinions to this book: Dr. Xintao Wu, Associate Professor, Department of Information and Systems, University of North Carolina at Charlotte Dr. Xiaohong Yuan, Associate Professor, Department of Computer Science, North Carolina A&T State University Dr. Daoxi Xiu, Application Analyst Programmer, North Carolina Administrative Office of the Courts Dr. Dali Wang, Associate Professor, Department of Physics and Computer Science, Christopher Newport University Last but not least, thanks should be forwarded to all people who supported me to finish this book. Y. B. xxvii

30

Practical Database Programming with Visual Basic.NET

Practical Database Programming with Visual Basic.NET Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson

More information

Practical Database Programming With Visual C#.NET

Practical Database Programming With Visual C#.NET Practical Database Programming With Visual C#.NET Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication

More information

Practical Database Programming with Java

Practical Database Programming with Java Practical Database Programming with Java Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication

More information

Real-Time Optimization by Extremum-Seeking Control

Real-Time Optimization by Extremum-Seeking Control Real-Time Optimization by Extremum-Seeking Control Real-Time Optimization by Extremum-Seeking Control KARTIK B. ARIYUR MIROSLAV KRSTIĆ A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2003 by John Wiley

More information

WIRELESS SENSOR NETWORKS A Networking Perspective Edited by Jun Zheng Abbas Jamalipour A JOHN WILEY & SONS, INC., PUBLICATION WIRELESS SENSOR NETWORKS IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE

More information

COMPONENT-ORIENTED PROGRAMMING

COMPONENT-ORIENTED PROGRAMMING COMPONENT-ORIENTED PROGRAMMING COMPONENT-ORIENTED PROGRAMMING ANDY JU AN WANG KAI QIAN Southern Polytechnic State University Marietta, Georgia A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2005 by John

More information

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web

More information

DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING

DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING ORDINARY DIFFERENTIAL EQUATION APPLICATIONS WITH R William E. Schiesser

More information

Relational Database Index Design and the Optimizers

Relational Database Index Design and the Optimizers Relational Database Index Design and the Optimizers DB2, Oracle, SQL Server, et al. Tapio Lahdenmäki Michael Leach A JOHN WILEY & SONS, INC., PUBLICATION Relational Database Index Design and the Optimizers

More information

Agile Database Techniques Effective Strategies for the Agile Software Developer. Scott W. Ambler

Agile Database Techniques Effective Strategies for the Agile Software Developer. Scott W. Ambler Agile Database Techniques Effective Strategies for the Agile Software Developer Scott W. Ambler Agile Database Techniques Effective Strategies for the Agile Software Developer Agile Database Techniques

More information

COSO Enterprise Risk Management

COSO Enterprise Risk Management COSO Enterprise Risk Management COSO Enterprise Risk Management Establishing Effective Governance, Risk, and Compliance Processes Second Edition ROBERT R. MOELLER John Wiley & Sons, Inc. Copyright # 2007,

More information

LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION

LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS LEGITIMATE APPLICATIONS

More information

TASK SCHEDULING FOR PARALLEL SYSTEMS

TASK SCHEDULING FOR PARALLEL SYSTEMS TASK SCHEDULING FOR PARALLEL SYSTEMS Oliver Sinnen Department of Electrical and Computer Engineering The University of Aukland New Zealand TASK SCHEDULING FOR PARALLEL SYSTEMS TASK SCHEDULING FOR PARALLEL

More information

Professional ASP.NET 2.0 Databases. Thiru Thangarathinam

Professional ASP.NET 2.0 Databases. Thiru Thangarathinam Professional ASP.NET 2.0 Databases Thiru Thangarathinam Professional ASP.NET 2.0 Databases Professional ASP.NET 2.0 Databases Thiru Thangarathinam Professional ASP.NET 2.0 Databases Published by Wiley

More information

LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS

LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS LEGITIMATE APPLICATIONS

More information

HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING

HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING Alan G. Konheim JOHN WILEY & SONS, INC., PUBLICATION HASHING IN COMPUTER SCIENCE HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING

More information

10267 Introduction to Web Development with Microsoft Visual Studio 2010

10267 Introduction to Web Development with Microsoft Visual Studio 2010 10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides

More information

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Developing Web s Using Microsoft Visual Studio 2008 SP1 Introduction This five day instructor led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2008

More information

Microprocessor Theory

Microprocessor Theory Microprocessor Theory and Applications with 68000/68020 and Pentium M. RAFIQUZZAMAN, Ph.D. Professor California State Polytechnic University Pomona, California and President Rafi Systems, Inc. WILEY A

More information

Beginning Transact-SQL with SQL Server 2000 and Paul Turley with Dan Wood

Beginning Transact-SQL with SQL Server 2000 and Paul Turley with Dan Wood Beginning Transact-SQL with SQL Server 2000 and 2005 Paul Turley with Dan Wood Beginning Transact-SQL with SQL Server 2000 and 2005 Beginning Transact-SQL with SQL Server 2000 and 2005 Paul Turley with

More information

Study Guide. Robert Schmidt Dane Charlton

Study Guide. Robert Schmidt Dane Charlton Study Guide Study Guide Robert Schmidt Dane Charlton Senior Acquisitions Editor: Kenyon Brown Development Editor: Candace English Technical Editors: Eric Biller and Brian Atkinson Production Editor: Christine

More information

DE Introduction to Web Development with Microsoft Visual Studio 2010

DE Introduction to Web Development with Microsoft Visual Studio 2010 DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)

More information

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students

More information

MODERN MULTITHREADING

MODERN MULTITHREADING MODERN MULTITHREADING Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs RICHARD H. CARVER KUO-CHUNG TAI A JOHN WILEY & SONS, INC., PUBLICATION MODERN MULTITHREADING

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing

More information

Modern Experimental Design

Modern Experimental Design Modern Experimental Design THOMAS P. RYAN Acworth, GA Modern Experimental Design Modern Experimental Design THOMAS P. RYAN Acworth, GA Copyright C 2007 by John Wiley & Sons, Inc. All rights reserved.

More information

7 Windows Tweaks. A Comprehensive Guide to Customizing, Increasing Performance, and Securing Microsoft Windows 7. Steve Sinchak

7 Windows Tweaks. A Comprehensive Guide to Customizing, Increasing Performance, and Securing Microsoft Windows 7. Steve Sinchak Take control of Windows 7 Unlock hidden settings Rev up your network Disable features you hate, for good Fine-tune User Account control Turbocharge online speed Master the taskbar and start button Customize

More information

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2008 Delivery Method Instructor-led (Classroom)

More information

IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H

IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H Daniel Minoli A JOHN WILEY & SONS, INC., PUBLICATION IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H IP MULTICAST WITH APPLICATIONS TO

More information

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

Charting the Course... SharePoint 2007 Hands-On Labs Course Summary Course Summary Description This series of 33 hands-on labs allows students to explore the new features of Microsoft SharePoint Server, Microsoft Windows, Microsoft Office, including Microsoft Office Groove,

More information

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Beginning ASP.NET. 4.5 in C# Matthew MacDonald Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big

More information

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 10267 - Introduction to Web Development with Microsoft Visual Studio 2010 Duration: 5 days Course Price: $2,975 Software Assurance Eligible Course Description Course Overview This five-day instructor-led

More information

Linux Command Line and Shell Scripting Bible. Third Edtion

Linux Command Line and Shell Scripting Bible. Third Edtion Linux Command Line and Shell Scripting Bible Third Edtion Linux Command Line and Shell Scripting BIBLE Third Edition Richard Blum Christine Bresnahan Linux Command Line and Shell Scripting Bible, Third

More information

Algorithms and Parallel Computing

Algorithms and Parallel Computing Algorithms and Parallel Computing Algorithms and Parallel Computing Fayez Gebali University of Victoria, Victoria, BC A John Wiley & Sons, Inc., Publication Copyright 2011 by John Wiley & Sons, Inc. All

More information

THE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEM SOFTWARE, AND NETWORKING

THE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEM SOFTWARE, AND NETWORKING FOURTH EDITION THE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEM SOFTWARE, AND NETWORKING AN INFORMATION TECHNOLOGY APPROACH Irv Englander Bentley University John Wiley & Sons, Inc. Vice President & Executive

More information

Mastering UNIX Shell Scripting

Mastering UNIX Shell Scripting Mastering UNIX Shell Scripting Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus Second Edition Randal K. Michael Wiley Publishing, Inc. Mastering UNIX Shell

More information

Linux Command Line and Shell Scripting Bible

Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible Richard Blum Wiley Publishing, Inc. Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible Richard Blum Wiley Publishing,

More information

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Welcome to SQL Server Integration Services 1. Chapter 2: The SSIS Tools 21

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Welcome to SQL Server Integration Services 1. Chapter 2: The SSIS Tools 21 Introduction xxix Chapter 1: Welcome to SQL Server Integration Services 1 SQL Server SSIS Historical Overview 2 What s New in SSIS 2 Getting Started 3 Import and Export Wizard 3 The Business Intelligence

More information

Programming Microsoft LINQ in

Programming Microsoft LINQ in Microsoft Programming Microsoft LINQ in Framework 4 Microsoft NET Paolo Pialorsi Marco Russo Table of Contents Preface Acknowledgments Introduction xvii xix xxi Part I LINQ Foundations 1 LINQ Introduction

More information

DATABASE DESIGN AND DEVELOPMENT

DATABASE DESIGN AND DEVELOPMENT DATABASE DESIGN AND DEVELOPMENT DATABASE DESIGN AND DEVELOPMENT An Essential Guide for IT Professionals PAULRAJ PONNIAH A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2003 by John Wiley & Sons, Inc.

More information

Join the p2p.wrox.com. Wrox Programmer to Programmer. Beginning PHP 5.3. Matt Doyle

Join the p2p.wrox.com. Wrox Programmer to Programmer. Beginning PHP 5.3. Matt Doyle Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer Beginning PHP 5.3 Matt Doyle Programmer to Programmer Get more out of WROX.com Interact Take an active role online by participating in our

More information

CHAPTER 1: INTRODUCING C# 3

CHAPTER 1: INTRODUCING C# 3 INTRODUCTION xix PART I: THE OOP LANGUAGE CHAPTER 1: INTRODUCING C# 3 What Is the.net Framework? 4 What s in the.net Framework? 4 Writing Applications Using the.net Framework 5 What Is C#? 8 Applications

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

OVER 750 QUESTIONS AND 55 TASK-BASED SIMULATIONS! CPA EXAM REVIEW. Auditing and Attestation. O. Ray Whittington, CPA, PhD Patrick R.

OVER 750 QUESTIONS AND 55 TASK-BASED SIMULATIONS! CPA EXAM REVIEW. Auditing and Attestation. O. Ray Whittington, CPA, PhD Patrick R. OVER 750 QUESTIONS AND 55 TASK-BASED SIMULATIONS! 2012 CPA EXAM REVIEW Auditing and Attestation O. Ray Whittington, CPA, PhD Patrick R. Delaney, CPA, PhD WILEY CPA EXAM REVIEW WILEY EXAM REVIEW Auditing

More information

"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary Description Course Summary In this course, experienced developers who know the basics of data access (CRUD) in Windows client and Web application environments will learn to optimize their designs and develop

More information

Microsoft. Microsoft Visual C# Step by Step. John Sharp

Microsoft. Microsoft Visual C# Step by Step. John Sharp Microsoft Microsoft Visual C#- 2010 Step by Step John Sharp Table of Contents Acknowledgments Introduction xvii xix Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 1 Welcome to

More information

C# Programming: From Problem Analysis to Program Design. Fourth Edition

C# Programming: From Problem Analysis to Program Design. Fourth Edition C# Programming: From Problem Analysis to Program Design Fourth Edition Preface xxi INTRODUCTION TO COMPUTING AND PROGRAMMING 1 History of Computers 2 System and Application Software 4 System Software 4

More information

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1 FOREWORD INTRODUCTION xxv xxvii CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1 Microsoft Visual Web Developer 2 Getting Visual Web Developer 3 Installing Visual Web Developer Express 3 Creating Your First

More information

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Overview This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hrs Overview: This five-day

More information

Beginning Visual Basic 2005 Databases. Thearon Willis

Beginning Visual Basic 2005 Databases. Thearon Willis Beginning Visual Basic 2005 Databases Thearon Willis Beginning Visual Basic 2005 Databases Beginning Visual Basic 2005 Databases Thearon Willis Beginning Visual Basic 2005 Databases Published by Wiley

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

Mastering BEA WebLogic Server Best Practices for Building and Deploying J2EE Applications

Mastering BEA WebLogic Server Best Practices for Building and Deploying J2EE Applications Mastering BEA WebLogic Server Best Practices for Building and Deploying J2EE Applications Gregory Nyberg Robert Patrick Paul Bauerschmidt Jeffrey McDaniel Raja Mukherjee Mastering BEA WebLogic Server

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

Beginning Visual Basic 2015

Beginning Visual Basic 2015 Beginning Visual Basic 2015 Introduction................................................... xxvii Chapter 1 Welcome to Visual Basic 2015................................ 1 Chapter 2 The Microsoft.NET Framework..............................

More information

J2EE TM Best Practices Java TM Design Patterns, Automation, and Performance

J2EE TM Best Practices Java TM Design Patterns, Automation, and Performance J2EE TM Best Practices Java TM Design Patterns, Automation, and Performance Darren Broemmer Wiley Publishing, Inc. Dear Valued Customer, The WILEY advantage We realize you re a busy professional with

More information

Installing and Administering a Satellite Environment

Installing and Administering a Satellite Environment IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00 IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00

More information

MCITP Windows Server 2008 Server Administrator Study Guide

MCITP Windows Server 2008 Server Administrator Study Guide MCITP Windows Server 2008 Server Administrator Study Guide Darril Gibson MCITP Windows Server 2008 Server Administrator Study Guide MCITP Windows Server 2008 Server Administrator Study Guide Darril Gibson

More information

"Charting the Course... Agile Database Design Techniques Course Summary

Charting the Course... Agile Database Design Techniques Course Summary Course Summary Description This course provides students with the skills necessary to design databases using Agile design techniques. It is based on the Scott Ambler book Agile Database Techniques: Effective

More information

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett Beginning Web Programming with HTML, XHTML, and CSS Second Edition Jon Duckett Beginning Web Programming with HTML, XHTML, and CSS Introduction............................................... xxiii Chapter

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

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

INFORMATION HIDING IN COMMUNICATION NETWORKS

INFORMATION HIDING IN COMMUNICATION NETWORKS 0.8125 in Describes information hiding in communication networks, and highlights its important issues, challenges, trends, and applications. Highlights development trends and potential future directions

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

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 Course Overview This instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

Essential Angular for ASP.NET Core MVC

Essential Angular for ASP.NET Core MVC Essential Angular for ASP.NET Core MVC Adam Freeman Essential Angular for ASP.NET Core MVC Adam Freeman London, UK ISBN-13 (pbk): 978-1-4842-2915-6 ISBN-13 (electronic): 978-1-4842-2916-3 DOI 10.1007/978-1-4842-2916-3

More information

INTRODUCTION TO IP ADDRESS MANAGEMENT

INTRODUCTION TO IP ADDRESS MANAGEMENT INTRODUCTION TO IP ADDRESS MANAGEMENT IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson B. M. Hammerli

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#) Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#) Course Length: 5 Days Course Overview This instructor-led course teaches developers to gain in-depth guidance on

More information

Securing SCADA Systems. Ronald L. Krutz

Securing SCADA Systems. Ronald L. Krutz Securing SCADA Systems Ronald L. Krutz Securing SCADA Systems Securing SCADA Systems Ronald L. Krutz Securing SCADA Systems Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis,

More information

CHAPTER 1: INTRODUCTION TO THE IDE 3

CHAPTER 1: INTRODUCTION TO THE IDE 3 INTRODUCTION xxvii PART I: IDE CHAPTER 1: INTRODUCTION TO THE IDE 3 Introducing the IDE 3 Different IDE Appearances 4 IDE Configurations 5 Projects and Solutions 6 Starting the IDE 6 Creating a Project

More information

Oracle Financial Services Compliance Regulatory Reporting Framework User Guide. Release May 2018

Oracle Financial Services Compliance Regulatory Reporting Framework User Guide. Release May 2018 Oracle Financial Services Compliance Regulatory Reporting Framework User Guide Release 8.0.6 May 2018 Oracle Financial Services Compliance Regulatory Reporting Framework User Guide Release 8.0.6 May 2018

More information

Course Syllabus C # Course Title. Who should attend? Course Description

Course Syllabus C # Course Title. Who should attend? Course Description Course Title C # Course Description C # is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the.net Framework.

More information

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Learning C# 3.0 Jesse Liberty and Brian MacDonald O'REILLY Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Table of Contents Preface xv 1. C# and.net Programming 1 Installing C# Express 2 C# 3.0

More information

Contents. LINQ for Visual C# 2008 i

Contents. LINQ for Visual C# 2008 i Contents Chapter 1: LINQ to Objects...1 Introduction...1 A Simple C# 3.0 LINQ to Objects Program...1 Extension Methods...3 Lambda Expressions...5 Expression Trees...6 Object Initialization Expressions...7

More information

Chapter 1: Introducing SQL Server

Chapter 1: Introducing SQL Server Leiter ftoc.tex V3-03/25/2009 1:31pm Page xv Introduction xxvii Chapter 1: Introducing SQL Server 2008 1 A Condensed History of SQL Server 1 In the Beginning 1 The Evolution of a Database 1 Microsoft Goes

More information

Pro LINQ. Language Integrated Query in C# Apress. Adam Freeman and Joseph C. Rattz, Jr.

Pro LINQ. Language Integrated Query in C# Apress. Adam Freeman and Joseph C. Rattz, Jr. Pro LINQ Language Integrated Query in C# 2010 Adam Freeman and Joseph C. Rattz, Jr. Apress Contents Contents at a Glance Contents About the Author About the Technical Reviewer Acknowledgments Part 1: Pro

More information

Oracle PL/SQL. DUMmIES. by Michael Rosenblum and Dr. Paul Dorsey FOR

Oracle PL/SQL. DUMmIES. by Michael Rosenblum and Dr. Paul Dorsey FOR Oracle PL/SQL FOR DUMmIES by Michael Rosenblum and Dr. Paul Dorsey Oracle PL/SQL For Dummies Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright 2006 by

More information

PDSA. Developer's Guide to Reporting Services 2008 R2. design» architecture» security» training» best practices:pdsa.com

PDSA. Developer's Guide to Reporting Services 2008 R2. design» architecture» security» training» best practices:pdsa.com PDSA Developer's Guide to Reporting Services 2008 R2 design» architecture» security» training» best practices:pdsa.com Developer s Guide to Reporting Services 2008 R2 By: John A. Kuhn & Paul D. Sheriff

More information

Customizing and Upgrading Linux Second Edition Linda McKinnon Al McKinnon Gearhead Press Wiley Computer Publishing John Wiley & Sons, Inc. Customizing and Upgrading Linux Customizing and Upgrading Linux

More information

"Charting the Course to Your Success!" MOC B Programming in C# Course Summary

Charting the Course to Your Success! MOC B Programming in C# Course Summary Course Summary Description This training course teaches developers the programming skills that are required for developers to create Windows applications using the C# language. During their five days in

More information

Linux. The book you need to succeed! Boot up to Ubuntu, Fedora, KNOPPIX, Debian, opensuse, and 13 Other Distributions Edition.

Linux. The book you need to succeed! Boot up to Ubuntu, Fedora, KNOPPIX, Debian, opensuse, and 13 Other Distributions Edition. DVD and CD-ROM Included Run or install 18 different Linux distributions from the multi-boot DVD and CD-ROM! Christopher Negus Linux 2009 Edition Boot up to Ubuntu, Fedora, KNOPPIX, Debian, opensuse, and

More information

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language

More information

Developing Web Applications Using Microsoft Visual Studio 2008

Developing Web Applications Using Microsoft Visual Studio 2008 Course 2310C: Developing Web Applications Using Microsoft Visual Studio 2008 Length: 5 Day(s) Published: April 24, 2008 Language(s): English Audience(s): Developers Level: 100 Technology: Microsoft Visual

More information

Oracle BI Publisher 11g R1: Fundamentals

Oracle BI Publisher 11g R1: Fundamentals Oracle BI Publisher 11g R1: Fundamentals Volume I Student Guide D68420GC10 Edition 1.0 June 2011 D73304 Authors Lea Shaw Sindhu Rao Technical Contributors and Reviewers Timothy McGlue Nikos Psomas Pradeep

More information

Before You Begin 1 Graphing Application 1 Introducing Computers, the Internet and Visual Basic.NET

Before You Begin 1 Graphing Application 1 Introducing Computers, the Internet and Visual Basic.NET CO N T E N T S Preface Before You Begin xviii xxviii 1 Graphing Application 1 Introducing Computers, the Internet and Visual Basic.NET 1.1 What Is a Computer? 1 1.2 Computer Organization 2 1.3 Machine

More information

ASP.NET Core Recipes

ASP.NET Core Recipes ASP.NET Core Recipes A Problem-Solution Approach Second Edition John Ciliberti ASP.NET Core Recipes: A Problem-Solution Approach John Ciliberti Sparta, New Jersey, USA ISBN-13 (pbk): 978-1-4842-0428-3

More information

ITT Technical Institute. PT2520T Database Concepts Onsite Course SYLLABUS

ITT Technical Institute. PT2520T Database Concepts Onsite Course SYLLABUS ITT Technical Institute PT2520T Database Concepts Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 67 (41 Theory Hours, 26 Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites:

More information

2609 : Introduction to C# Programming with Microsoft.NET

2609 : Introduction to C# Programming with Microsoft.NET 2609 : Introduction to C# Programming with Microsoft.NET Introduction In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented

More information

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ Serialization PLINQ WPF LINQ SOA Design Patterns Web Services 4.0.NET Reflection Reflection WCF MVC Microsoft Visual Studio 2010 Advanced Contents for.net Professionals Learn new and stay updated Design

More information

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET 2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET Introduction Elements of this syllabus are subject to change. This five-day instructor-led course provides students with the knowledge

More information

"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary

Charting the Course to Your Success! MOC D Querying Microsoft SQL Server Course Summary Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation

More information

Implementing Security and Tokens: Current Standards, Tools, and Practices

Implementing  Security and Tokens: Current Standards, Tools, and Practices Implementing Email Security and Tokens: Current Standards, Tools, and Practices Sean Turner Russ Housley Wiley Publishing, Inc. Implementing Email Security and Tokens: Current Standards, Tools, and Practices

More information

Microsoft. Inside Microsoft. SharePoint Ted Pattison. Andrew Connell. Scot Hillier. David Mann

Microsoft. Inside Microsoft. SharePoint Ted Pattison. Andrew Connell. Scot Hillier. David Mann Microsoft Inside Microsoft SharePoint 2010 Ted Pattison Andrew Connell Scot Hillier David Mann ble of Contents Foreword Acknowledgments Introduction xv xvii xix 1 SharePoint 2010 Developer Roadmap 1 SharePoint

More information

Level: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48)

Level: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48) Course Title: Visual Programming Course No. : ICT Ed 535 161 Nature of course: Theoretical + Practical Level: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48) 1. Course Description This

More information

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course Module 1: Overview of the Microsoft.NET Framework This module introduces the conceptual framework of the.net Framework and ASP.NET. Introduction to the.net Framework Overview of ASP.NET Overview of the

More information

Subject to Change Drawing Application 1 Introducing Computers, the Internet and C#

Subject to Change Drawing Application 1 Introducing Computers, the Internet and C# CO N T E N T S Subject to Change 08-01-2003 Preface Before You Begin Brief Table of Contents i iv vii 1 Drawing Application 1 Introducing Computers, the Internet and C# 1.1 What Is a Computer? 1 1.2 Computer

More information

iwork DUMmIES 2ND EDITION FOR

iwork DUMmIES 2ND EDITION FOR iwork FOR DUMmIES 2ND EDITION iwork FOR DUMmIES 2ND EDITION by Jesse Feiler iwork For Dummies, 2nd Edition Published by John Wiley & Sons, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright

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