tsql - Comparing a time value with a value in ssis -


i use such expression in dereived column, remains red (it not accepted):

(dt_dbtime) [datum]  =="00:00:00" ? 1 : 2  

(if time part of variable [datum] = "00:00:00" 1 else 2)

you can't compare dt_dbtime , dt_wstr type. try cast data dt_wstr dt_dbtime type:

(dt_dbtime) [datum]  == (dt_dbtime)"00:00:00" ? 1 : 2  

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -