Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Clear Abandoned Companies from SQL.

(0) ShareShare
ReportReport
Posted on by

Does anyone have the script to run in SQL to remove invalid company references from the SYSTEM database?

Scenario: User manually deleted unneeded companies in SQL.

SL's System database still thinks these companies exist.

I am now unable to deploy MR as MR thinks these companies exist but they really don't.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Clear Abandoned Companies from SQL.

    Which tables were updated by the user and in which database?

    The System database table COMPANY has the SL companies, and the System database table DOMAIN has the Application databases that contain setup and transaction tables for the companies.

    The support group for MR published a short Word document on deleting companies from the MR Configuration console. You may run into other issues when the script to build the MR Datamart runs against the SL application database, if there was posted activity for the companies in the application database.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans