Spróbuj zmienić
RETURNS @Parms TABLE
(
Token VARCHAR(MAX)
)
z
try changing RETURNS @Parms TABLE
(
Token VARCHAR(MAX) COLLATE DATABASE_DEFAULT
)
i
WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region))
z
WHERE Region COLLATE DATABASE_DEFAULT IN (SELECT Token FROM dbo.getParmsFromString(@Region))