Zkuste změnit
RETURNS @Parms TABLE
(
Token VARCHAR(MAX)
)
s
try changing RETURNS @Parms TABLE
(
Token VARCHAR(MAX) COLLATE DATABASE_DEFAULT
)
a
WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region))
s
WHERE Region COLLATE DATABASE_DEFAULT IN (SELECT Token FROM dbo.getParmsFromString(@Region))