Probeer te veranderen
RETURNS @Parms TABLE
(
Token VARCHAR(MAX)
)
met
try changing RETURNS @Parms TABLE
(
Token VARCHAR(MAX) COLLATE DATABASE_DEFAULT
)
en
WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region))
met
WHERE Region COLLATE DATABASE_DEFAULT IN (SELECT Token FROM dbo.getParmsFromString(@Region))