(MSSQL) Upgrade fails on NK_SUM_JULIAN_FCT with error "Incorrect syntax near the keyword 'with'