Sql query with date
Hi All,
We have a requirement to clear the instances of a table which are older than one week. I have created an agent activity and using RDB-Delete method. But while testing its throwing the below error.
SQl Query: delete from Data.pr_MyTablel_Con_0620d where ExpiryDateTime < {ASIS:ConnectLog.pxCreateDateTime};
Value of ConnectLog.pxCreateDateTime property in clipboard is 20190402T000000.000 GMT
Error:
There was a problem getting a list: code: 102 SQLState: S0001 Message: Incorrect syntax near 'T000000'. |