MACROMEDIA COLDFUSION 4.5-ADMINISTRING COLDFUSION SERVER Manual page 143

Table of Contents

Advertisement

Chapter 4: Managing Data Sources
you need to create the newtable data source in the ColdFusion Administrator,
specifying the MERANT dBase/FoxPro ODBC driver. If you don't create the data source,
you'll receive an error when you try to execute this page. This example generates the
following tables in the newtable data source.
Fields created in the Beans1 table
Field
Bean_ID
Name
Price
Date
Descript
<HTML>
<HEAD>
<TITLE>DBASE Table Setup</TITLE>
</HEAD>
<BODY>
<!---
Before running this code, you need to create the
newtable data source in the ColdFusion Administrator,
specifying the Merant dBase/FoxPro ODBC driver.
--->
<CFQUERY NAME=xs DATASOURCE="newtable">
CREATE TABLE Beans1 (
</CFQUERY>
<CFQUERY NAME=xs DATASOURCE="newtable">
INSERT INTO Beans1 VALUES (
</CFQUERY>
<CFQUERY NAME=xs DATASOURCE="newtable">
Data type
numeric
char
char
date
char
Bean_ID numeric(6),
Name char(50),
Price char(50),
Date date,</P>
Descript char(254))
1,</P>
'Kenya',
'33',
{ts '1999-08-01 00:00:00.000000'},
'Round, rich roast')
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents