Conversion failed when converting date and/or time from character string, but works with hard coded value?

  • I just finished wrestling with CounterData.CounterDateTime. I am seeing it as a CHAR(24) with the 24th character showing as ASCII code 0. CAST(LEFT(CounterDateTime ,23) AS DATETIME) seems to be working for me. Aargh!

Viewing post 16 (of 15 total)

You must be logged in to reply to this topic. Login to reply