How to write to TO_CHAR and TO_DATE SQL Server? - Toolbox for IT Groups
Thank you! That did the trick. I do not understand it complains about syntax if I do this, but using the LEFT? option worked fine. sSql.append(" and convert(VARCHAR(10),auditDate,121) AS [YYYY/MM] = convert(VARCHAR(10),GETDATE(),121) AS [YYYY ......