Viewing post 1 (of 1 total)
The problem is that you're trying to concatenate a datetime to a string. Cast @STARTTIME as an nvarchar and add single quotes inside @SQLSTR, and your code will work.
September 28, 2018 at 8:54 am
#2007376