Skip to main content
  • 10000+ Posts
  • 53,495 Replies
10000+ Posts
SQL Executor DateTime issue

Hi,I'm using the SQL Executor transformer to pull back the most recent records from a SQL server DB  since the ETL was last run.  The last run datetime will be held in in a Postgres table and pushed through as a parameter to the SQL Executor, the issue here arises when I push the datetime parameter through to the SQL Executor As a test and to trap the error I've used the attribute creator transformer to generate a datetime attribute which would mimic the last run datetime from Postgres, and hence push this through as a parameter. I've set the value = '2018-01-14 09:18:00'If I run SQL Executor with a set datetime ('2018-01-14 09:18:00') the SQL executor runs successfully  and returns records. However if I run the same query replacing the specified datetime value with the the parameter I get the following error message, despite the value and format being identical?--'. Provider error `(-2147217900) Incorrect syntax near '09'.'The error message points

Badge Winners

  • FME Form Advanced Training
    richy_tkhas earned the badge FME Form Advanced Training
  • Online Training
    vincentwjnhas earned the badge Online Training
  • Welcome Back
    jiriteachhas earned the badge Welcome Back
  • Student (Grey)
    dcoladnehas earned the badge Student (Grey)
  • Online Training
    toeshas earned the badge Online Training
Show all badges

Community Stats

32,554
Posts
123,610
Replies
40,807
Members