Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » UltraLite - C and C++ Programming » Application development » Developing UltraLite applications for Windows Mobile

 

Storing persistent data

The UltraLite database is stored in the Windows Mobile file system. The default file is \UltraLiteDB\ul_store.udb. You can override this choice using the file_name connection parameter which specifies the full path name of the file-based persistent store.

The UltraLite runtime carries out no substitutions on the file_name parameter. If a directory has to be created for the file name to be valid, the application must ensure that any directories are created before calling db_init.

As an example, you could make use of a flash memory storage card by scanning for storage cards and prefixing a name by the appropriate directory name for the storage card. For example,

file_name = "\\Storage Card\\My Documents\\flash.udb"