UltraLite CE_FILE connection parameter

Names the new database file when creating a database. When opening a connection to an existing database, this connection parameter identifies the database.

Syntax
CE_FILE=path\ce-db

Default
  • DBF connection parameter.
  • If you do not set a value for the DBF connection parameter or this connection parameter, then the default value is \UltraLiteDB\ulstore.udb.
Remarks

You should use the CE_FILE connection parameter for UltraLite client applications that use the same connection string to connect to a Windows Mobile device, as well as other platforms.

The CE_FILE connection parameter takes precedence over the DBF connection parameter. If you are connecting from an UltraLite administration tool, or your connection object only connects to a Windows Mobile database, use the DBF connection parameter.

The value of CE_FILE must meet the file name requirements for Windows Mobile. If you include an absolute path to the database, then all directories must exist before setting the path to this file. UltraLite does not create them automatically.

Any leading or trailing spaces in parameter values are ignored. This connection parameter's value cannot include leading single quotes, leading double quotes, or semicolons.

See also
Example

The following example creates a new connection and identifies different database files for the Windows desktop and Windows Mobile platforms:

Set Connection = DatabaseMgr.OpenConnection("DBF=d:\Dbfile.udb;CE_FILE=\myapp\MyDB.udb")