74
Migrating Client Variable Data
To migrate your client variable data to another data source, you should know the
structure of the database tables used to store this information. Client variables
stored externally use two small database tables, like those shown in the following
tables:
CGLOBAL Table
Column
cfid
data
lvisit
CDATA Table
Column
cfid
app
data
Creating client variable tables
Use this example ColdFusion page as a model for creating client variable database
tables in your own database. However, keep in mind that not all databases support
the same column data type names. Refer to your database documentation for the
proper data type.
Sample table creation page
<!---- Create the Client variable storage tables in a datasource.
This example applies to Microsoft Access databases --->
<CFQUERY NAME="data1" DATASOURCE="#DSN#">
CREATE TABLE CDATA
(
)
</CFQUERY>
Note
If a cluster of ColdFusion Servers uses this data source, ensure that only one
server is configured to purge client data.
Data Type
char(64)
memo
date
Data Type
char(64)
char(64)
memo
cfid char(20),
app char(64),
data memo
Chapter 5 Basic ColdFusion Server Administration
Need help?
Do you have a question about the COLDFUSION 5 - INSTALING AND CONFIGURING SERVER and is the answer not in the manual?