SunQuest
 
       ASP
  Home arrow ASP arrow Page 3 - ADO for the Beginner
Iron Speed
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? 
ASP

ADO for the Beginner
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 19
    2007-11-12

    Table of Contents:
  • ADO for the Beginner
  • Connecting to a Database
  • Connect to a Database with ODBC
  • Working with Table Recordsets
  • How to Display Data

  • 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

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    ADO for the Beginner - Connect to a Database with ODBC


    (Page 3 of 5 )

    Using our friend the ODBC database connection, you can connect to any database that is located on your network (providing of course that there is an ODBC connection to use). Here is how that would look in ASP:


    <%

    set conn=Server.CreateObject("ADODB.Connection")

    conn.Open "chucknorrisvicims"

    $>

    Connect to a Microsoft Access Database Using ODBC

    So you want to connect to a Microsoft Access database? Well you can do that with ODBC. First, you must make sure to configure your ODBC connection on the same computer that holds your web site. In other words, if your web site is located on a remote server, your web host will need to be contacted to do this for you. If you are using Personal Web Server or Internet Information Server on a computer you have access to, the following will allow you to set up the connection yourself:

    • Double Click the ODBC icon (it should be located in your Control Panel).

    • Find the System DSN tab and click on it.

    • Click the Add button under the System DSN tab.

    • Click on the Microsoft Access Driver and click the Finish button.

    • When the next screen appears, click the Select button to locate your database.

    • Choose a DSN (Data Source Name).

    • Click the OK button.

    More ASP Articles
    More By James Payne


       · Heyo! Welcome to my article on Beginning ADO. Here we discuss such topics as:...
     

    ASP ARTICLES

    - ADO for the Beginner
    - ADO.NET 101: Data Rendering with a DataGrid ...
    - Introducing SoftArtisans OfficeWriter 3.0 En...
    - Getting Remote Files With ASP
    - The Real Basics of Functions in ASP
    - Enhancing Readability with ASP
    - Mimicking PHP's String Formatting Functions
    - Windows Server Hacks 12, 77, and 98
    - How to Sort a Multi-Dimensional Array
    - Developing an Information Management Tool wi...
    - What are Active Server Pages?
    - Getting Remote Pages with ASP
    - FTP’ing Files with ASP
    - Apply Single-Sign-On to Your Application
    - Easy Error Management

    SunQuest




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