Performs two different functions:
When creating a database, this parameter names the new database file.
When opening a connection to an existing database, the parameter identifies the database.
An UltraLite client application that connects to a desktop database in addition to another platform using the same connection string.
If you are connecting from an UltraLite administration tool, or your connection object only connects to a desktop database, use DBF.
NT_FILE=path\nt-db
The default depends on what you set:
If you do not set a value for this connection parameter, then the value for the DBF parameter, if one has been set, is used.
If you do not set a value for this parameter or DBF, then the default value is \UltraLiteDB\ulstore.udb.
RecommendationAlways explicitly specify the parameter; do not rely on default behavior. |
This parameter takes precedence over the DBF parameter.
The value of NT_FILE must meet the file name requirements for Windows desktop platforms.
The path can be absolute or relative. If you include a directory as part of the file name, 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 semi-colons(;).
The following example creates a new connection and identifies different database files for the desktop, Palm OS, and Windows CE platforms:
Connection = DatabaseMgr.OpenConnection("UID=JDoe;PWD=ULdb; NT_FILE=c:\test\MyTestDB.udb;CE_FILE=\database\MyCEDB.udb;PALM_FILE=MyPalmDB_MyCreatorID")