I am relatively new to Toad Data Point and trying to report by joining two Microsoft SQL tables on two separate servers. One table is on an SQL Server 2005 being joined to another table on an SQL Server 2008 R2. When I Google this error message it appears that Toad thinks I am using MariaDB that requires only 2 parameters. Not sure what I am doing wrong. DATEDIFF as used here works fine when used from within SQL Management Studio with the 3 parameters. I had a similar issue with using GETDATE().
Here is the query.
SELECT
ClerkDocument.DateSentToClerksOffice
, ClerkDocument.ClerksOfficeSentTo
, ClerkDocument.CaseNumber
, ClerkDocument.NPLastName
, ClerkDocument.DateReturned
, ALE_CBU_CASE.ALE_CASE_ID
, ALE_CBU_CASE.ALE_ACTV_TYPE_CD
FROM
11.21.80.22\kcdcss (jrizos), EmergencyContact
.EmergencyContact.dbo.ClerkDocument ClerkDocument
INNER JOIN
11.21.80.10 (jrizos), LocalDR
.LocalDR.dbo.ALE_CBU_CASE ALE_CBU_CASE
ON (ClerkDocument.CaseNumber = cast(ALE_CBU_CASE.ALE_CASE_ID as char))
WHERE DATEDIFF(Month,ClerkDocument.DateSentToClerksOffice,CURRENT_TIMESTAMP)=1
Any advise will be much appreciated.