Specifying file paths in an UltraLite connection parameter

The physical storage of your device determines:

Note

Use absolute file paths when using the UltraLite engine to support multi-process access to a database since the engine may be started in different locations

The DBF parameter is most appropriate when targeting a single deployment platform or when using UltraLite desktop administration tools. For example:

ulload -c DBF=sample.udb sample.xml
Windows Mobile tip

You can use the UltraLite administration tools to administer databases already deployed to an attached device. See Windows Mobile.

Otherwise, if you are writing a cross-platform application, use the platform specific (CE_DBF, or NT_DBF) file connection parameters to construct a universal connection string. For example:

Connection = DatabaseManager::OpenConnection("UID=JDoe;PWD=ULdb;CE_DBF=\database\MyCEDB.udb;NT_FILE=MyDB.udb")
 Desktop
 Windows Mobile
 See also