Database
  Home arrow Database arrow On Wiring Up an ADO Data Control
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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? 
DATABASE

On Wiring Up an ADO Data Control
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2006-10-18

    Table of Contents:
  • On Wiring Up an ADO Data Control
  • Preparatory Steps
  • Creating a New ODBC DSN
  • Testing the ODBC Data Source Name Option

  • 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


    On Wiring Up an ADO Data Control


    (Page 1 of 4 )

    ActiveX Data Control is Microsoft's most versatile pre-.NET Framework control that superseded the earlier DAO and RDO controls. Other third party data controls like the Oracle control were also used, but their support within the Visual Basic program was not as good. This tutorial is about connecting the ADODC control to a data source.

    This ActiveX control provides three options for connecting to a data source and this article discusses all of them. The emphasis of this tutorial is not so much on using this control when it is connected, but rather on the configuration of the control to make a connection.

    Three ways to connect an ADO control to a data source

    The Property pages of an ADO control shows that there are three options for connecting to a database. These are:

    • Using a DataLink file
    • Using an ODBC Source name
    • Using a Connection String

    The Datalink file and the ODBC Source name can be created outside the VB environment using other tools. The connection string and the ODBC Source name options can be configured from inside the VB Program. Of course, all of these options depend on the data source that is going to be used. The providers of data, the middle men in this connection effort, are different for different data sources as will be seen shortly.

    In the case of the DataLink option, the connection will be made to an MS Access Jet Database; the ODBC Source name will use an Oracle 10G XE database on the local machine, and the connection string option will make a connection to a SQL 2005 Server on the network. A Visual Basic Standard EXE project with three forms will be used to elucidate the details. Since the proverbial proof of the pudding is in its eating, some minimal use of the control after it gets connected to the data will also be demonstrated.

    More Database Articles
    More By Jayaram Krishnaswamy


       · This tutorial discusses all the three options in wiring up the ADO data Control to...
     

    DATABASE ARTICLES

    - Manage Projects with SQL Server Management S...
    - Query Editing and Regular Expressions with S...
    - Using SQL Server Management Studio Tools
    - SQL Server Management Studio
    - Exporting a MySQL Database to Excel Using OD...
    - Controlling Databases with SQL Server 2005 D...
    - Using Recovery Models with SQL Server 2005 D...
    - Handling Database Properties for the SQL Ser...
    - Managing Permissions with the SQL Server 200...
    - SQL Server 2005 Database Engine Security
    - Administering SQL Server 2005 Database Engine
    - Building Applications with Anonymous Types
    - A Closer Look at Anonymous Types
    - Programming with Anonymous Types
    - Converting Your Excel Worksheet into a Worki...





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek