0

What I want to do is to let the system date dictate what my reporting year should be in this query:

EXEC [reporting].[Testing]
        @CompanyNames = NULL,
        @ReportYear = 2020

to something like this:

EXEC [reporting].[Testing]
        @CompanyNames = NULL,
        @ReportYear = YEAR(SYSDATE())

Any thoughts?

Thank you

Stapes
  • 1

1 Answers1

0

you can try this . I hope your reporting is database

EXEC [reporting].[Testing]
@CompanyNames = NULL,
@ReportYear = cast(getdate() as date(30))