ColdFusion
  Home arrow ColdFusion arrow Databases and Dreamweaver MX 2004, conclud...
IBM Rational Software Development Conference
Iron Speed
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
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? 
COLDFUSION

Databases and Dreamweaver MX 2004, concluded
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2006-01-12

    Table of Contents:
  • Databases and Dreamweaver MX 2004, concluded
  • Using Dreamweaver MX 2004 to Create Queries
  • Using Dreamweaver MX 2004’s Advanced Recordset Interface
  • Writing a SELECT Query in Advanced Mode
  • Filtering by Multiple Parameters

  • 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

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Databases and Dreamweaver MX 2004, concluded
    (Page 1 of 5 )

    This article, the second of two parts, looks at the different database applications available for use with ColdFusion. It is excerpted from chapter two of the book ColdFusion Web Development with Dreamweaver MX 2004, written by Jen and Peter de Haan et al. (Apress; ISBN: 1590592379).

    Setting Up a Data Source

    As mentioned before, when you installed ColdFusion, some databases were also installed by default. ColdFusion usually sets up data sources automatically for these databases. However, in case you don’t have a data source set up, we will briefly explain how to use the ColdFusion Administrator to set up data sources for Access databases. The procedure for other databases is similar but may require additional information (such as a database username and password in the case of Microsoft SQL Server and Oracle databases).

    1. Open a web browser and direct it tohttp://localhost:8500/CFIDE/administrator/. If you’ve set up your ColdFusion server on a port other than 8500, you will need to modify this URL accordingly. 
    2. Once you’ve logged into the Administrator, click on Data Sources under the Data & Services section of the menu on the left-hand side. If CompanyInfo shows up in the Connected Data Source area with aMicrosoft Access driver, click on it. Otherwise, enter CompanyInfo in the Data Source Name field in the Add New Data Source area near the top of the window. (We will reference this name later in Dreamweaver and in the<cfquery>CFML tag.) Next select Microsoft Access from the Driver drop-down menu, and then click on the Add button. You will now see the dialog box shown in Figure 2-6.

      Figure 2-6.  The Microsoft Access Data Source 
       dialog box 
    3.  Next click on the Browse Server button beside the Database File field and navigate to the directory where you installed ColdFusion server (typically,C:\CFusionMX\). From here, navigate into the db folder, selectcompany.mdb, and click on Apply.

      You’ll be taken back to the previous screen with the path to the database file filled in. Make sure that Use Default Username is checked, and click on Submit.

    The Administrator window will now list all of your data sources, as shown in Figure 2-7.


    Figure 2-7.  The Data Sources screen, showing 
     CompanyInfo as a connected Data Source

    If you have successfully created the data source, then you will see OK in the Status column and “datasource updated successfully” at the top of your screen, as shown in Figure 2-7. Otherwise, you will be presented with error messages.

    Now that you have successfully configured your database, let’s create some queries!

    More ColdFusion Articles
    More By Apress Publishing


       · This article is an excerpt from the book "ColdFusion Web Development with...
     

    Buy this book now. This article is excerpted from chapter two of the book ColdFusion Web Development with Dreamweaver MX 2004, written by Jen and Peter de Haan et al. (Apress, 2004; ISBN: 1590592379). Check it out today at your favorite bookstore. Buy this book now.

    COLDFUSION ARTICLES

    - How to Access a SQL Anywhere Database with C...
    - CFXML: Probing XMLDOM in ColdFusion
    - Creating a Web Service with ColdFusion: the ...
    - CFAjax: What it is and How to Use it
    - Querying SQL 2000 Server from ColdFusion
    - Introduction to ColdFusion Markup Language, ...
    - Introduction to ColdFusion Markup Language
    - Databases and Dreamweaver MX 2004, concluded
    - Databases and Dreamweaver MX 2004
    - Welcome to Coldfusion MX 6.1, concluded
    - Welcome to Coldfusion MX 6.1
    - What You Must Know About ColdFusion Flow-Con...
    - What You Must Know About Operators in ColdFu...
    - Everything You Must Know About ColdFusion Va...
    - My First Application on ColdFusion MX Server






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