16
I've inherited a C# app which I've converted to vb. I get one error which as far as I can see has nothing to do with the conversion.
I have a SQL statement which is....
SELECT ResolverID AS ddlValue, ResolverTeam & ' | ' & ResolverPerson AS ddlText
FROM dbo.TblResolvers
ORDER BY ResolverTeam, ResolverPerson;
When this runs I get the error:
The data types nvarchar and varchar are incompatible in the boolean AND operator.
In the table both ResolverTeam and ResolverPerson are specified as (nvarchar(255), null)
Why am I getting this error?