Configuration An AutoID is generated in the "ID" column. The value in this column is, in other words, always increased by 1. The "Timestamp" column stores the time at which the data record was saved. The name of the variable is stored in the "Name" column The "Value" column stores the value of the variable. Important! Do not save the database on the Compact Flash Card in case of an embedded system. Either use the database in RAM, i.e., do not save to the "Hard disk" folder, or save on a network folder. To many write cycles to the Compact Flash Card can shorten its service life. 6.5.4 SQL Compact Database The values of the variables are saved in a Microsoft SQL Compact database.
Microsoft SQL Server 2005 Compact Edition is a compact database, ideal for embedding in mobile and desktop applications. It offers developers a programming model common with other editions of SQL Server for developing system dedicated and managed applications. This SQL Server requires relatively few resources, but nevertheless provides the necessary functionality for relational databases such as a robust data store, an optimized query processor and reliable, scalable connection functions. Compatible version: Microsoft Compact SQL Database 3.5 The variable values are saved in the following table structure. TS6420 40 Version:
1.2 Column name Data type Characteristic ValueType="Bytes" Value OLE Object E DBColumnTypes _ MS Access PLC Control eDBColumn BigInt _ Integer4 DINT eDBColumn Integer _ Integer2 INT eDBColumn SmallInt _ Integer2 INT eDBColumn TinyInt _ Integer1 SINT eDBColumn Bit _ YESNO BYTE eDBColumn Money _ Currency LREAL eDBColumn Float _ Double LREAL eDBColumn Real _ Single REAL eDBColumn DateTime _ DATETIME DT eDBColumn NText _ Text STRING eDBColumn NChar _ VarChar STRING eDBColumn Image _ OLEOBJECT ARRAY OF BYTE eDBColumn NVarChar _ VarChar STRING eDBColumn Binary _ OLEOBJECT ARRAY OF BYTE eDBColumn VarBinary _ OLEOBJECT ARRAY OF BYTE Column name Data type Null permitted Characteristic ID bigint no IDENTITY(1,1) Timestamp datetime no Name ntext no ValueType = "Double" Value float no ValueType = "Bytes" Value image no