Storing application data in the database

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
csanders
Posts: 6
Joined: Thu Jan 12, 2012 8:56 pm

Storing application data in the database

Post by csanders »

I have several settings and relational data that need to be retained between power cycles on the hmi. Is it possible to store these in a table in SQL CE that is installed on the terminal? If so, what is the connection string to connect to the database?

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Storing application data in the database

Post by Ron L. »

When you start iX Developer there is a Sample available called "Script_Database_Export". This sample uses the file "Database.sdf" which is used by different Functions in iX such as the DataLogger.

Although the example uses "Database.sdf", you can also create your own database as shown here:
http://stackoverflow.com/questions/1487 ... mmatically

I've attached another example that might be useful.
Attachments
Script_Clear_DataLogger.zip
(285.81 KiB) Downloaded 842 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

Post Reply