Prova a cambiare
RETURNS @Parms TABLE
(
Token VARCHAR(MAX)
)
con
try changing RETURNS @Parms TABLE
(
Token VARCHAR(MAX) COLLATE DATABASE_DEFAULT
)
e
WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region))
con
WHERE Region COLLATE DATABASE_DEFAULT IN (SELECT Token FROM dbo.getParmsFromString(@Region))