Upon Adding of New Restriction Groups,
The system gave me this error.

Would you help me to solve this issue?
Upon Adding of New Restriction Groups,
The system gave me this error.
Would you help me to solve this issue?
Best answer by budi12
Upon Adding of New Restriction Groups,
The system gave me this error.
Would you help me to solve this issue?
Hi There, I got same error, I try to extend column length and the error disappear.
This is my script to extend column length related table.
/** THIS IS SCRIPT TO EXTEND ALL GroupMask Column ON ANY Table **/
DECLARE @P0 NVARCHAR(MAX)='YOUR_DB_NAME';
DECLARE @SQL NVARCHAR(MAX);
DECLARE tmp CURSOR FOR
SELECT CONCAT('alter table ',a.TABLE_NAME,' alter column ',a.COLUMN_NAME, ' [varbinary](128) NOT NULL;') SQL_SCRIPT
FROM INFORMATION_SCHEMA.COLUMNS a
INNER JOIN sys.objects b ON b.name=a.TABLE_NAME
WHERE TABLE_CATALOG=@P0
AND DATA_TYPE='varbinary'
AND CHARACTER_MAXIMUM_LENGTH=128
AND COLUMN_NAME=N'GroupMask'
AND IS_NULLABLE='NO'
AND b.type != N'V'
OR (TABLE_NAME=N'Neighbour' AND DATA_TYPE='varbinary')
OPEN tmp
FETCH NEXT FROM tmp INTO @SQL
WHILE @@FETCH_STATUS=0
BEGIN
PRINT @SQL
EXEC SP_EXECUTESQL @SQL
FETCH NEXT FROM tmp INTO @SQL
END
CLOSE tmp
DEALLOCATE tmp
GO
Do with your own risk.
Thank you.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.