How to create new datatype in MS SQL Server 2014?

Viewed 95

On the server side of my application I use MS SQL Server 2014 Express. On client side I have C# WPF application and I have the following enum type there:

/// <summary>
/// User authorization level.
/// </summary>
public enum UserAuthorizationLevel
{
    /// <summary>
    /// Only visual inspection is allowed (the first lower level).
    /// </summary>
    Inspection,
    /// <summary>
    /// Some settings in apparatus are allowed (the second level).
    /// </summary>
    SettingDeviceParametersApplied,
    /// <summary>
    /// Some more setting in apparatus are allowed than in the second level (the third level).
    /// </summary>
    Maintenance,
    /// <summary>
    /// Apparatus manufacturer level - full access is allowed (the highest level).
    /// </summary>
    Manufacturer
}

Can I create this type on server side (in MS SQL Server database) and use this type as type for fields in database tables?

1 Answers
Related