Intenta cambiar
RETURNS @Parms TABLE
(
Token VARCHAR(MAX)
)
con
try changing RETURNS @Parms TABLE
(
Token VARCHAR(MAX) COLLATE DATABASE_DEFAULT
)
y
WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region))
con
WHERE Region COLLATE DATABASE_DEFAULT IN (SELECT Token FROM dbo.getParmsFromString(@Region))