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.
USE [PCAR_Data] GO /****** Object: UserDefinedFunction [dbo].[ufn_lastPaperStatementBefore] Script Date: 10/03/2016 09:37:54 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[ufn_lastPaperStatementBefore] ( @AccountID BIGINT, @dateParam DATE ) RETURNS DATE BEGIN DECLARE @firstStatement DATE SET @firstStatement = ( select coalesce(max(cast(statement.exportdate as date)),'1950-01-01') from statement with (NOLOCK) where accountid = @AccountID and cast(statement.exportdate as date) < @dateParam and statementtype = 's' and voided is null ) RETURN (@firstStatement) 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.