Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Management Reporter- Limiting data in Datamart

(0) ShareShare
ReportReport
Posted on by 316

Hello,

We are looking to limit the years of data into the DataMart.  Is there a script to assist with this?

Thanks!

*This post is locked for comments

  • Verified answer
    NorK Profile Picture
    NorK 316 on at
    RE: Management Reporter- Limiting data in Datamart

    DynSLDataMartAdapterInstGuide.pdf

    To limit a single Microsoft Dynamics SL application database, follow these steps:  

    1. Log on to SQL Server Management Studio, open a query window, and then select the database.    

    2. Paste the following into the query window.   IF EXISTS (SELECT * FROM sysobjects WHERE id =  OBJECT_ID('dbo.Get_MR_FiscalYear_Start'))        DROP Procedure dbo.Get_MR_FiscalYear_Start   GO   Create Proc Get_MR_FiscalYear_Start as       Select '2009'   GO   Grant Execute on [Get_MR_FiscalYear_Start] to [E8F575915A2E4897A517779C0DD7CE] GO   3. Change the year shown to the start fiscal year limit that you want to specify. For example, if you specify 2009, the Management Reporter reports will include data from fiscal year 2009 and later.    

    4. Run the SQL statement.   To limit all Microsoft Dynamics SL databases, follow these steps:  

    1. Locate the MRServiceHost.settings.config file, and then edit the file in Notepad. The default location of the file is <Program Files>\Microsoft Dynamics ERP\Management Reporter\2.1\Server\Services.    Note: You must install the Management Reporter Server component first.  

    2. Add a line that resembles the following.   <add key="IntegrationFiscalYearStart" value="2009" />  

    3. Change the year shown to the start fiscal year limit that you want to specify. For example, if you specify 2009, the Management Reporter reports will include data from fiscal year 2009 and later.  

    4. Save the changes to the MRServiceHost.settings.config file.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans