So I have a temporary table with only one column NVARCHAR(400).
In this temp table, I Insert values from various sources.
One of these is
INSERT INTO @permissions
SELECT Concat (N'resourcetype_', CONVERT(NVARCHAR(36), resourcetypeid))
FROM roleresourcetypepermission
WHERE roleid = @roleId OR @IsAdmin = 1
I tried with + instead of CONCAT, tried not to convert them explicitly, nothing seems to be working.
