Problem : The data types nvarchar and uniqueidentifier are incompatible in the add operator.
Hi
How do i use a variable of type uniqueidentifier in a string concatentation
Here is my line
SET @filter = @filter + ‘ J.EngineerID = ”’ + @engineerID + ””
but i get this error
The data types nvarchar and uniqueidentifier are incompatible in the add operator.
thanks
Solution: The data types nvarchar and uniqueidentifier are incompatible in the add operator.
sorry Convert as nVarchar
CAST(unidColumn as nVarchar )