Hi, thanks for sending the two queries side by side, that is very helpful.
The easiest fix is to do a replace in Sql string in the C# and add the N, so something like:
sql = sql.Replace (“= ‘“, “= Nz’”)
Please try that and let me know if that works.
dotnet Report Team