compare time in ssis
hi
if want compare datetime vs specific time should do?
i.e. startdatetime specific time
2015-10-12 00:03:19:020 16:23:00
i want compare time in startdatetime coloum vs specific time i.e. 16:23 . please me!
katherine xiong thnaks reply
i convert startdatetime to (dt_dbtime) after want calculate time difference. how can it?
i.e want calculate 2 (dt_dbtime) columns without date ==> (16:23:00)-(00:03:19)
thanks of fast replies
katherine xiong thnaks reply
i convert startdatetime to (dt_dbtime) after want calculate time difference. how can it?
i.e want calculate 2 (dt_dbtime) columns without date ==> (16:23:00)-(00:03:19)
thanks of fast replies
if wanted find out time difference between 2 time values can use this
datediff("s",(dt_dbtimestamp) "16:23:00",(dt_dbtimestamp) "00:03:19")
or specifying column in place of values
but 1 thing should keep in mind
comparing take time part , time difference math. if above meant 16:23 of day 00:03:19 of next day wont able imply specifying time alone. in case need append date part , comparison
ie say
datediff("s",(dt_dbtimestamp) "2015-10-01 16:23:00",(dt_dbtimestamp) "2015-10-02 00:03:19")
if have field storing date them append time field , cast timestamp before apply datediff comparison
please mark answer if solved issue
please vote helpful if helps solve issue
visakh
----------------------------
my wiki user page
my msdn page
my personal blog
my facebook page
SQL Server > SQL Server Integration Services
Comments
Post a Comment