Accessibility

Table of Contents

Creating a Client-Server Guest Book with Macromedia Flash and ColdFusion

Registering the Data Source in ColdFusion Administrator

You will store all comments and information in a database, such as Microsoft Access or Microsoft SQL Server. To create a data source for ColdFusion, follow these steps:

  1. Open guestbook_src.zip from the Requirements section. Extract GuestBook.mdb in a new directory named cfGuestBook in your web root directory.
  2. Open ColdFusion Administrator.
  3. Click Data & Services > Data Sources on the left frame.
  4. You will see a box titled Add New Data Source. In the Data Source Name field, type GuestBook. For Driver, select Microsoft Access from the pop-up menu.
  5. Click Add (see Figure 1).

    Adding a new data source in ColdFusion Administrator

    Figure 1. Adding a new data source in ColdFusion Administrator

  6. ColdFusion displays a new page that contains a box titled "Microsoft Access: GuestBook." For the Database File, type the path of GuestBook.mdb, where you placed the file in your directory, or click Browse to find the MDB file. (By default, this path is C:\CFusionMX\db\GuestBook.mdb). Leave the other fields blank and click Submit.

Now that you have registered your data source, it's time to use it!