Create a Date Attribute (Master Data Services)
Applies To: SQL Server 2016 Preview
In Master Data Services, create a date attribute when you want users to enter a date as an attribute value.
The attribute is called DateTime, but time values are not supported.
To perform this procedure:
To create a date attribute
In Master Data Manager, click System Administration.
On the Manage Model page, select a model from the grid and then click Entities.
On the Manage Entity page, select the row for the entity that you want to create an attribute for.
On the Manage Attributes page, do one of the following and then click Add.
If the attribute is for leaf members, select Leaf from the Member Types list box.
If the attribute is for consolidated members, select Consolidated from the Member Types list box.
If the attribute is for collections, select Collection from the Member Types list box.
In the Name box, type a name for the attribute. For a list of words that should not be used as attribute names, see Reserved Words (Master Data Services).
Optionally, type a display name, and type a description for the attribute in the Description box.
In the Display pixel width box, type the width of the attribute column to be displayed in the Explorer grid.
From the Attribute type list, select Free-form.
From the Data type list, select DateTime.
From the Input mask list, select a format for dates.
Optionally, select Enable change tracking to track changes to groups of attributes. For more information, see Add Attributes to a Change Tracking Group (Master Data Services).
To have the user interface display the time portion of a datetime value, you must select an appropriate input mask for the attribute. None of the built-in masks for Datetime attributes do this, but you can add a new mask that will allow you to display time. To do so, add a row in the mdm.tblList table of the MDS database, where the built-in masks are stored. The row should have the following values:
dd/MM/yyyy hh:mm:ss tt
After you enter a row with the above values in the mdm.tblList table, the “dd/MM/yyyy hh:mm:ss tt” mask will be available in the Input mask list box. You can then select that mask to display the date and time in a datetime attribute column of an entity in the MDS Explorer.
The Input Mask is a custom .NET DateTime format string. For more information, see Custom Date and Time Format Strings