-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: SQL
SQL Security Roles information
Here is an SQL to retrieve all security roles privileges for all entities to help with comparing or to be used in an SSRS report SELECT FilteredRole.name as UserName, EntityView.PhysicalName, EntityView.OriginalLocalizedName as DisplayName, Privilege.Name as PrivilegeName, AccessLevel = CASE Privilege.AccessRight … Continue reading
SQL get attributes details of entities
The following SQL can be used to retrieve information and details about all attributes in an entity. SELECT EntityView.Name AS EntityName, LocalizedLabelView_1.Label AS EntityDisplayName, AttributeView.Name AS AttributeName, LocalizedLabelView_2.Label AS AttributeDisplayName,AttributeTypes.Description as Type, AttributeTypes.XmlType,AttributeView.Length,AttributeView.MaxLength,AttributeView.AttributeRequiredLevelId,Accuracy,IsCustomEntity,IsMappable,EntityView.IsCustomizable,EntityView.IsRenameable,IsActivity FROM LocalizedLabelView AS LocalizedLabelView_2 INNER JOIN AttributeView … Continue reading
Posted in Helpers, SQL
Leave a comment