次の方法で共有


How to: Import Objects

You can import application objects into the database from a file. The file must be one of the following formats:

  • Microsoft Dynamics NAV Object format (.fob)

  • Text format (.txt)

You can import objects either by using the development environment UI or by running finsql.exe with the ImportObjects command.

Note

To import objects from .txt format, you must have a developer license. To import objects from .fob format, you can have either an end-user license or a developer license.

To import objects by using the development environment UI

  1. In the development environment, on the Tools menu, choose Object Designer.

  2. On the File menu, choose Import.

  3. In the Import Objects window, locate the folder where the import file is located, select the file, and then choose Open.

    If you import objects from a .txt file, then the objects in the file overwrite any objects that are already in the database. If you import objects from a .fob file and one or more objects in the file has the same ID as an object that are already in the database, then you receive a warning. You can choose to either cancel the import or open the Import Worksheet to resolve the conflicts.

  4. Use the Import Worksheet to specify how to resolve conflicts between objects in the import file and objects in the database. For more information, see Import Worksheet.

To import objects by running finsql.exe with the ImportObjects command

  1. At a command prompt, move to the location of finsql.exe. By default, finsql.exe is located at C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored client\.

  2. Run finsql.exe with the parameter "command=importobjects". You must specify the following parameters:

    • file

    • servername

    • database

    All other parameters are optional.

    For more information about the ImportObjects command, see ImportObjects.

See Also

Concepts

Importing and Exporting Objects