Dennis Post (9/3/2013)
I haven't been able to REPLACE the CHAR(0) nor have I been able to detect it with:
Force a binary collation:
replace(col COLLATE Latin1_General_BIN2, char(0), ' ')
An non-binary SQL collation as suggested by Sean works too, but only with varchar.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
Hi All,
Check this it will work:
select * from CounterData
where
CONVERT(datetime,CONVERT(char(23),CounterDateTime),121)>dateadd(mi,-60,getdate())
Thanks,
Fouzan
Viewing 3 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy