Determine the data type of the array sub-element

Next, determine what data type the array sub-element will require in SQL terms. You can use the HPE Service Manager sqldbinfo table as a guideline for mapping a Service Manager data type to a SQL data type. For example, the assignment.groups sub-element uses the character data type. According to the sqldbinfo table, a character data type maps to a varchar data type on Microsoft SQL server.

Verify that your SQL data type mapping meets your data needs. Ideally, you want to identify the source of your data and match its SQL mapping. For example, the source of the assignment.groups field in the operator table is the name field in the assignment table. When you look at the database dictionary for the source data, you see that the source data is mapped as a varchar(60) data type.

In this example, we shall remap the array sub-element to use the varchar(60) data type to match the source data type.