executing the following query in the SQL management studio yields results, whereas this is not through cfquery ...
select distinct locationid, locationname, locationaliasname
from vwLocationsWithAlias
where 1 = 0
or (LocationName = N'the' or LocationAliasName = N'the')
or (LocationName = N'the republic' or LocationAliasName = N'the republic')
Expected results are returned from Mgmt Studio SQL, but nothing is returned from CFQuery. WTF !?
source
share