Importing Data into Your Database |
< Previous section | Table of Contents | Index | Next section >
The Import verb of MBUtility imports data into your database from an input file. For example, if you are migrating to MainBoss from some other maintenance management software package, you might be able to import some subset of the data from that other package.
Important: Importing is a complicated procedure, and should only be done by people with strong IT expertise. We strongly recommend that you backup your database before you attempt an import operation. If an error occurs during an import operation, restore the database from backup, correct the error in the import data, then try again.
The command line for importing a single table is
mbutility import option option ...
where the options are:
/si:"Storeroom Assignment"
If you specify /OrganizationName, you don't have to specify either /DataBaseServer or /DataBaseName. If you don't specify /OrganizationName, you must specify both of /DataBaseServer and /DataBaseName.
For example,
mbutility im /si:Unit /in:myfile /eo:errs /on:MainBoss
imports unit data from a file named myfile.
Important: This version of MainBoss will not let you import data that conflicts with existing records in the database. For example, if you are importing unit data, each new unit's identifier code must be different from any units that are already in the database. This means that you can't export MainBoss data, edit it with some other piece of software, then import it again to overwrite MainBoss's existing data.
ImportAll: The ImportAll verb imports multiple tables from a file. This file should have been created with ExportAll (as described in Exporting Data from Your Database) or with some process that creates data in the same format as ExportAll. ImportAll takes the same options as Import, except that you don't specify a /SchemaIdentification.
If you wish to create a database for testing, we recommend using backup and restore (using Create New Organization from Backup) rather than exporting and importing data. For more information, see Backups within MainBoss and Restoring a Backup Within MainBoss.
Tip: Sometimes it's difficult to figure out what format to use when you are preparing data for import. When in doubt, start up MainBoss and create a record of the type you intend to import; for example, if you intend to import Unit records, create a Unit record inside MainBoss. Then export the record as described in Exporting Data from Your Database. The format of the exported record will be the same that's expected for imported records.
CreateMainBossBasicDatabase: The CreateMainBossBasicDatabase verb creates a SQL Server database containing data from a MainBoss Basic database. This command does not create a MainBoss database. Instead, it takes XML data that was exported from MainBoss Basic and uses that data to create a generic SQL Server database. This may be useful if you are a MainBoss Basic user and you wish to use standard SQL Server facilities to make queries on MainBoss Basic data.
The CreateMainBossBasicDatabase verb takes the following options:
< Previous section | Table of Contents | Index | Next section >