Comparing Time(7) in SQL server
Posted: Mon Feb 09, 2015 8:26 pm
Hi,
I have a scenario where I need to compare time datatype from Datastage to Time(7) in SQL server in my update query.
Upon running below is the error message I get
The data types time and datetime2 are incompatible in the is operator
ODBC function is reading Time(7) as DateTime2 data type which is not able to compare against Time from DataStage.
any thoughts on how to achieve this?
Regards
Kumar
I have a scenario where I need to compare time datatype from Datastage to Time(7) in SQL server in my update query.
Upon running below is the error message I get
The data types time and datetime2 are incompatible in the is operator
ODBC function is reading Time(7) as DateTime2 data type which is not able to compare against Time from DataStage.
any thoughts on how to achieve this?
Regards
Kumar