I'm having a temp procedure:
CREATE PROCEDURE
#update_ListItemEntityNumberValueAndLocalizations(
@modelPrefix NVARCHAR(255),
@definitionNeutralName NVARCHAR(255),
@listItemNeutralValue NVARCHAR(255),
@newNumberValue float,
@listItemEnName NVARCHAR(255),
@listItemDeName NVARCHAR(255))
In this procedure there is the following if statement:
if(@listItemEnName is not null)
And at this line I get the following error:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the is not operation.
Does anyone know why this happens and how I can avoid it?
UPDATE: Database collation is SQL_Latin1_General_CP1_CI_AS
Why does a "is null" needs the collation?
Is there a way to cast the null or set the collation of the parameter?