I am trying to retrieve data from salesforce via SSIS per a specific date value which keeps changing as only new data is to be loaded. So i have a variable in the Execute SQL task as AccountLastModdate = select max(lastmodifieddate) from Account. Within the Salesforce Source object, i have the statement/expression as "select accountnumber, accountsource from Account where lastmodifieddate >"+ @[User::AccountLastModDate] but i keep getting the below error.
The AccountlastModdate is fed by this query SELECT CONVERT(NVARCHAR,max(lastmodifieddate),126) from account as SF needs the date to be in a specific format. From reading in forums, issue seems to be datatype related. I see that the variable is of datetime , but it is in the format as per Salesforce. Looks like i've two issue, (1) is with the datetime conversion and (2) is the syntax for the expression. Please advise on how to resolve this.
thank you.