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
  • Better Essays

    Given a business system application that needs to retrieve from and write to a relational database using an external sequential or CSV data file format, the student will design, code, and document the business application using a high-level language.…

    • 1818 Words
    • 8 Pages
    Better 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
  • 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

    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
  • Good Essays

    Pyrite

    • 558 Words
    • 3 Pages

    Pyrite is a very interesting mineral for many reasons. The name Pyrite comes from the Greek word “pyr” which means “fire,” and was named because it was found that sparks would fly from it if struck against another minerals like steel. In early times, this sparking ability gave people a way of creating fire, and in later times, this ability made it popular for use in early firearms devices like the wheel lock. Today Pyrite is called “Fools Gold” because throughout history people have mistaken it for Gold because of its similar visible structure, metallic surface and brassy yellow color. The funny thing is Gold is often found with to Pyrite deposits. Pyrite can easily be distinguished from Gold. Pyrite is much lighter in color and much harder. Even though Pyrite is a fairly hard mineral, its crystals are known to break and crumble, because it is brittle.…

    • 558 Words
    • 3 Pages
    Good 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
  • 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

    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
  • Powerful Essays

    Emmanuel Odenyire

    • 1214 Words
    • 5 Pages

    – Accelerated version of Microsoft course 20483B, a five-day course (which includes hands-on labs). – We recommend developers new to C# or who need hands-on experiences take this course with a Microsoft Learning Partner…

    • 1214 Words
    • 5 Pages
    Powerful 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
  • 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

    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