[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Unofficial UNIT-e Forum • SSRS_SESSION_CUR_APP
Page 1 of 1

SSRS_SESSION_CUR_APP

Posted: Mon Feb 20, 2017 5:57 pm
by robinwilson16
Default session for applications:

Code: Select all

CREATE FUNCTION [dbo].[SSRS_SESSION_CUR_APP] ()
RETURNS TABLE
AS
RETURN

SELECT 
	Code = SES.s_name, 
	Description = SES.s_name
FROM ulive.dbo.capd_session AS SES
WHERE
	SES.s_type = 'FY'
	AND SES.s_start <=  DATEADD ( year, +1, GetDate() )
	AND SES.s_end >= DATEADD ( year, +1, GetDate() )