Different result from same SQL statement


the following sql statement brings records using query analyzer on sql server. when run in cold fusion page comes no results. idea why????????

select count(h.userid) hits, u.ocd
from dbo.tbl_hits h inner join
dbo.tlkp_users u on h.userid = u.pin
where (h.appname 'opwiz%') , (h.lu_date between '05/01/07' , '06/01/07')
group u.ocd
order u.ocd

perhaps sql server performing implicit type conversion date values date/time datatype when query run via query analyzer, conversion not happening coldfusion. happens if explicitly cast() date "strings" datetime?

phil


More discussions in Database Access


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support