Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 3 - How to Use Data Sources with Databases
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

How to Use Data Sources with Databases
By: Murach Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2006-11-02

    Table of Contents:
  • How to Use Data Sources with Databases
  • How to start the Data Source Configuration Wizard
  • How to choose a data source type
  • How to create a connection to a database
  • How to choose database objects for a data source

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    How to Use Data Sources with Databases - How to choose a data source type


    (Page 3 of 5 )

    The first step of the Data Source Configuration Wizard lets you specify the source from which your application will get its data. To work with data from a database as described in this chapter, you select the Database option. However, you can also select the Web Service option to work with data from a web service that’s available from the Internet or from an intranet. Or, you can select the Object option to work with data that’s stored in business objects. This option lets you take advantage of the objects that are available from the middle layer of an application as described in chapter 17.

    The first step of the Data Source Configuration Wizard

    How to start the Data Source Configuration Wizard

    • Click on the Add New Data Source link that’s available from the Data Sources window when a project doesn’t contain any data sources.
    • Select the Add New Data Source command from Visual Studio’s Data menu.
    • Add a SQL Server (.mdf) or Access (.mdb) data file to the project using the Project->Add-> Existing Item command. Then, the wizard will skip to the step shown in figure 14-4 that lets you choose the database objects you want to include.

    How to choose a data source type

    1. To get your data from a database, select the Database option. This option lets you create applications like the ones described in this chapter.
    2. To get your data from a web service, select the Web Service option. This option lets you browse the web to select a web service that will supply data to your application.
    3. To get your data from a business object, select the Object option. This option lets you create applications like the ones described in chapter 17.

    Description

    • Before you start this procedure, you need to install your database server software on your own PC or on a network server, and you need to attach your database to it. For more information, please refer to appendix A.
    • When you click the Next button in the first step of the wizard above, the Choose Your Data Connection step is displayed. Then, if you’ve already established a connection to a database, you can choose that connection. Otherwise, you can click the New Connection button to display the Add Connection dialog box shown in the next figure.

    Figure 14-2.   How to start the Data Source Configuration Wizard and choose a data source type

    More Visual Basic.NET Articles
    More By Murach Publishing


       · This article is an excerpt from the book "Murach's Visual Basic 2005," published by...
     

    Buy this book now. This article is excerpted from chapter 14 of the book Murach's Visual Basic 2005, written by Anne Boehm (Murach, 2006; ISBN: 1890774383). Check it out today at your favorite bookstore. Buy this book now.

    VISUAL BASIC.NET ARTICLES

    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...
    - Programmatically Controlling Windows Fax Ser...
    - Focusing on Forms and Menus in Visual Basic





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway