This utility performs the following functions:
Creates a new database by loading data from an XML file.
Loads data into an existing database.
ulload -c "connection-string" [ options ] xml-file
Append data and schema definitions into an existing database.
If you are appending data into a pre-existing record-based database for Palm OS (that is, one with a .pdb extension), do not use the -p option.
Required. Connect to the database as identified in the DBF or file_name parameter of your connection-string. If you do not specify both a user ID and a password, the default UID of DBA and PWD of sql are assumed.
Load data only, ignoring any schema data in the XML file input.
Set the XML file directory to an external path.
Set the initial database ID to the INTEGER value you assign. This value is used by the database for all new rows that have global autoincrement columns. The database uses this base value to autoincrement IDs associated with each additional row and/or column.
When deploying an application, you must assign a different identification number to each database for synchronization with the MobiLink server.
Include inserted rows in the next upload synchronization. By default, rows inserted by this utility are not uploaded during synchronization.
Load schema data only, ignoring any data in the XML file input.
-o [ extended-options ]
Set the UltraLite extended database creation options. See Extended creation-time options.
List the available extended database creation options and exit. See Extended creation-time options.
Control what happens if an error is encountered while reading data from the XML file. Define one of the following supported behavior values:
Open database in read-only mode. UltraLite makes a copy of the original file, and then use the copy to test your scripts without altering the database. Changes to the copied file are discarded upon completion.
If you are connecting directly from the desktop to a database already deployed to a CE device, this option is not supported.
Required for Palm OS only when you are creating a new database from the loaded file. Create the database with the specified four character creator-ID of the UltraLite client application.
If you are appending data into a pre-existing record-based database for Palm OS (that is, one with a .pdb extension), do not use this option with the -a option.
Run in quiet mode—do not print messages.
Log the SQL statements used to load the database into the specified file.
Specify the file containing the trusted root certificate. This certificate is required for server authentication.
Print verbose messages.
Overwrite xml-file without confirmation.
Specify the name of the XML file from which data is loaded.
The ulload utility creates the UltraLite database file, if the named file does not already exist.
Setting an option or specifying a certificate on the command line overrides any settings in the xml-file that is processed by ulload.
This utility returns error codes. Any value other than 0 means that the operation failed.
Palm OS databases Palm databases written to the desktop can be identified with the .pdb extension. See Palm OS.
However, once you deploy this file to the device, the extension is dropped.
Create a new UltraLite database file, sample.udb, and load it with data in sample.xml:
ulload -c DBF=sample.udb sample.xml
Load the data from sample.xml into the existing database sample.udb, and if an error occurs, prompt for action:
ulload -d -c DBF=sample.udb -onerror prompt sample.xml
Load XML from a file named test_data.xml into the copy UltraLite makes of the database named sample.udb. Discard those changes upon completion. This allows you to check for errors in the XML data and correct them. When data loads successfully, you can run the command without the -or option to keep the XML updates.
ulload -or -c DBF=sample.udb -a test_data.xml