创建模型 (Master Data Services)Create a Model (Master Data Services)

适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions) - 仅限 Windows 是Azure SQL 托管实例Azure SQL Managed InstanceYesAzure SQL 托管实例Azure SQL Managed Instance适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions) - Windows only 是Azure SQL 托管实例Azure SQL Managed InstanceYesAzure SQL 托管实例Azure SQL Managed Instance

Master Data ServicesMaster Data Services中,创建模型以便包含模型对象。In Master Data ServicesMaster Data Services, create a model to contain model objects.

先决条件Prerequisites

若要执行此过程:To perform this procedure:

创建模型To create a model

  1. 主数据管理器Master Data Manager中,单击 “系统管理”In 主数据管理器Master Data Manager, click System Administration.

  2. “模型视图” 页上,从菜单栏中,指向 “管理” ,然后单击 “模型”On the Model View page, from the menu bar, point to Manage and click Models.

  3. 在“管理模型” 页上,单击“添加” 。On the Manage Models page, click Add. 面板将会在右侧显示。A panel is displayed on the right side.

  4. 在“名称” 框中,键入模型的名称。In the Name box, type the name of the model.

  5. (可选)在“说明”字段中,输入模型说明。(Optionally) In the Description field, type the model description.

  6. 在“日志保留天数” 字段中,选择一个选项来保留日志数据。In the Log Retention Days field, select one of the options for retaining log data. 默认值是“系统设置” ,指示值继承自 Master Data Services 配置管理器Master Data Services Configuration Manager中的系统设置。The default value is System Setting, which indicates that the value is inherited from system settings in the Master Data Services 配置管理器Master Data Services Configuration Manager. 有关详细信息,请参阅系统设置 (Master Data Services)For more information, see System Settings (Master Data Services).

    若要替代系统设置且不删除事务日志数据,请选择“否” 。To override the system setting and not remove transaction log data, select NO. 若要仅保留今天的日志数据并截断之前所有日期的日志数据,请选择 "是" 并将 " 天数 " 字段设置为0。To retain only today's log data and truncate log data for all previous days, select YES and set the Days field to 0. 若要保留特定天数的日志数据,请选择“是” 并将“天数” 字段设置为相应天数。To retain log data for a specified number of days, select YES and set the Days field to the number of days.

  7. 或者,选择 “使用与模型相同的名称创建实体” 可以使用与模型相同的名称创建实体。Optionally, select Create entity with same name as model to create an entity with the same name as the model.

  8. 单击 “保存模型”Click Save model.

对于创建的每个模型,系统都会在网格中添加一行(其中包含八列)。For each created model, a row with eight columns is added to the grid. 八个列是:The eight columns are:

  • 状态:模型状态。Status: The model status. 单击 " 保存模型 " 按钮后,将显示 " 更新 " 图像,指示模型正在更新。When you click the Save model button, the Updating image is displayed, which indicates that the model is updating. 如果在创建或编辑模型时出现错误,则会显示 错误 映像。If there are errors when creating or editing a model, the Error image is displayed. 如果状态为“正常”,系统会显示 “确定” 图像。Otherwise, the status is OK and the OK image is displayed.

  • 名称:模型名称。Name: The model name.

  • 说明:模型说明。Description: The model description.

  • 日志保留天数:日志可保留该模型的天数。Log Retention Days: The number of days the log is retained for the model.

  • 创建者:创建模型的用户的用户名。Created By: The username of the user who created the model.

  • 创建的日期和时间:创建模型的日期和时间。Created Date and Time: The date and time when the model was created.

  • 更新者:上次更新模型的用户的用户名。Updated By: The username of the user who last updated the model.

  • 创建的日期和时间:上次更新模型的日期和时间。Updated Date and Time: The date and time when the model was last updated.

后续步骤Next Steps

另请参阅See Also

Master Data Services (模型) Models (Master Data Services)
实体 (Master Data Services) Entities (Master Data Services)
删除 (Master Data Services 的模型) Delete a Model (Master Data Services)
编辑模型 (Master Data Services) Edit Model (Master Data Services)
事务 (Master Data Services)Transactions (Master Data Services)