I am writting this query to update TC03_date col.
update varreport
set tc03_date = convert(datetime,mydate + ' '+ substring(right(('000' + mytime),4), 1,2)+ ':' + substring(right(('000' + mytime),4), 3,2))
tc03_date col is datetime, datatype and mydate and mytime is varchar. Getting this error Syntax error converting datetime from character string
update varreport
set tc03_date = convert(datetime,mydate + ' '+ substring(right(('000' + mytime),4), 1,2)+ ':' + substring(right(('000' + mytime),4), 3,2))
tc03_date col is datetime, datatype and mydate and mytime is varchar. Getting this error Syntax error converting datetime from character string