text: ﻿CREATE PROCEDURE [bll].[Resources_Validate__Activate]
  	@DefinitionId INT,
  	@Ids [dbo].[IndexedIdList] READONLY,
  	@IsActive BIT,
  	@Top INT = 200,
  	@IsError BIT OUTPUT
  AS
  BEGIN
  	SET NOCOUNT ON;
  	DECLARE @ValidationErrors [dbo].[ValidationErrorList];
  
  	-- TODO
  	
  	-- Set @IsError
  	SET @IsError = CASE WHEN EXISTS(SELECT 1 FROM @ValidationErrors) THEN 1 ELSE 0 END;
  
  	SELECT TOP(@Top) * FROM @ValidationErrors;
  END;