Preview

Bakelite

Powerful Essays
Open Document
Open Document
9537 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Bakelite
The C# Station ADO.NET Tutorial

Table of contents

page

Lesson 01: Introduction to ADO.NET

2

Lesson 02: The SqlConnection Object

6

Lesson 03: The SqlCommand Object

10

Lesson 04: Reading Data with the SqlDataReader

19

Lesson 05: Working with Disconnected Data

25

Lesson 06: Adding Parameters to Commands

33

Lesson 07: Using Stored Procedures

38

Lesson 01: Introduction to ADO.NET This lesson is an introduction to ADO.NET. It introduces primary ADO.NET concepts and objects that you will learn about in later lessons. Here are the objectives of this lesson:
• • • • • • •

Learn what ADO.NET is. Understand what a data provider is. Understand what a connection object is. Understand what a command object is. Understand what a DataReader object is. Understand what a DataSet object is. Understand what a DataAdapter object is.

Introduction ADO.NET is an object-oriented set of libraries that allows you to interact with data sources. Commonly, the data source is a database, but it could also be a text file, an Excel spreadsheet, or an XML file. For the purposes of this tutorial, we will look at ADO.NET as a way to interact with a data base. As you are probably aware, there are many different types of databases available. For example, there is Microsoft SQL Server, Microsoft Access, Oracle, Borland Interbase, and IBM DB2, just to name a few. To further refine the scope of this tutorial, all of the examples will use SQL Server. You can download the Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) here: http://www.microsoft.com/sql/msde/downloads/download.asp MSDE contains documentation on how to perform an installation. However, for your convenience, here are quick instructions on how to install MSDE: http://www.asp.net/msde/default.aspx?tabindex=0&tabid=1 MSDE 2000 is a scaled down version of SQL Server. Therefore, everything you learn in this tutorial and all code will work with SQL Server. The examples will use the Northwind database. This is a tutorial is

You May Also Find These Documents Helpful

  • Satisfactory Essays

    1.) Change control manager enforces change of things passwords. Password change policies makes things difficult for hackers. It’s Brute force attack.…

    • 84 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    I have learned few more advanced topics in c # programming Language in these two weeks. The topics are:…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Tyranny Dbq Analysis

    • 997 Words
    • 4 Pages

    Tyranny is like type of torture over states. Living under this word would be like living in hell. What did James Madison do to stop Tyranny. In 1794, the amendments were created and were ratified in 1795. Believe it or not this was something that stopped Franklin Roosevelt from creating tyranny. These 11 through 27 amendments were made in a place called “United States” which many americans live nowadays. But really, how did the bill of rights (amendments) guard us from tyranny?…

    • 997 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg420 Syllabus

    • 1691 Words
    • 7 Pages

    This course introduces object-oriented programming in the context of business applications development. The basics of the Java programming language are covered.…

    • 1691 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Discussion Board

    • 460 Words
    • 2 Pages

    I need to complete this assignment but I am having a hard time understanding it. Can someone give me some pointers on what to write on the DB? I just need a guide to start off with.…

    • 460 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Friar In Romeo And Juliet

    • 1194 Words
    • 5 Pages

    Two very in love teenagers take their life, in order to save their forbidden love, but with the help of whom they thought was keeping their love alive. In the play, Romeo and Juliet written by William Shakespeare, two teenagers from feuding families in Verna, Italy fall in love at first sight. Romeo Montague, of the Montague Family and Juliet Capulet of the Capulet Family. What lesson is learned is to never give a promise you can’t keep, although, this is not taught to Romeo or Juliet, but the Friar who helps them. In William Shakespeare’s play Romeo and Juliet, Friar Laurence is responsible for the tragedy due to his careless, inconsiderate, and sneaky traits he has demonstrating the author’s message that Friar Laurence should have never been…

    • 1194 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Business 220

    • 460 Words
    • 2 Pages

    Read Ch. 7, 8, & 11 & Technical Guide 3 of Introduction to Information Systems.…

    • 460 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ms Sql Detailed

    • 16406 Words
    • 66 Pages

    In this data base we can add data, remove data, and modify existing data easily and more efficiently. To communicate with database we require a language i.e. SQL.…

    • 16406 Words
    • 66 Pages
    Good Essays
  • Satisfactory Essays

    copro 3

    • 808 Words
    • 19 Pages

    What is .NET? Introduction to Microsoft .NET   1 _________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ .NET Benefits  .NET enhanced security  .NET…

    • 808 Words
    • 19 Pages
    Satisfactory Essays
  • Good Essays

    Rational Rose Manual

    • 2044 Words
    • 9 Pages

    This tutorial assumes that you have some knowledge of Java™ programming, and design patterns. Knowledge of UML models…

    • 2044 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    Case Study

    • 925 Words
    • 4 Pages

    Sweeney Tours is a holiday tour operator offering package holidays to a number of resorts in the Mediterranean. The holidays fly from a number of airports in the UK and have a fairly complicated pricing Structure. There is a great deal of information in the brochures that Sweeney Tours produce along with an Accompanying price guide. Some of the information is on computer but this is somewhat cumbersome as it is in separate systems that are incompatible, incomplete and difficult to use. It is particularly difficult to find holidays that match a customer's specific requests unless the brochure is browsed carefully. Sweeney Tours have decided to computerize the information in their brochure and to include booking information to make it easier to:…

    • 925 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Sql Tutorial

    • 5264 Words
    • 22 Pages

    | |In this tutorial you will learn how to use SQL to access and manipulate data in Oracle, Sybase, SQL |…

    • 5264 Words
    • 22 Pages
    Powerful Essays
  • Powerful Essays

    CHAPTER 1 THESIS

    • 1466 Words
    • 6 Pages

    All the outset the application requires were studied and analysis and design were carried out. The development platform and software tool were identified as Visual Basic 2010 (as front-end) and access (as back-end) database. Using visual programming, object are manipulated directly and also due to the feature of fast and easy prototyping and GUI building visual basic as used.…

    • 1466 Words
    • 6 Pages
    Powerful Essays

Related Topics