Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
CREATE FUNCTION myDateCompare(@startDate DateTime, @EndDate DateTime) RETURNS @resultDate AS BEGIN WITH datesFunc(date1, date2) AS ( SELECT CAST(date1 AS DATETIME), CAST(date2 AS DATETIME) ) SELECT CASE WHEN CAST(@startDate AS DATE) <= CAST(@EndDate AS DATE) THEN 'Start Date Cannot Start Before End Date' ELSE SELECT CASE WHEN CAST(@startDate AS DATE) <= CAST(getDate AS DATE) THEN 'Start date cannot be less than current date' ELSE 'Y' END FROM datesFunc RETURN; END;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.