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:
- Open guestbook_src.zip from the Requirements section. Extract GuestBook.mdb
in a new directory named cfGuestBook in your web root directory.
- Open ColdFusion Administrator.
- Click Data & Services > Data Sources on the left frame.
- 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.
-
Click Add (see Figure 1).
Figure 1. Adding a new data source in ColdFusion
Administrator
- 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!