Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Restoring a DB from LIVE to TEST will not update the views

Posted on by 4,156

When a LIVE database backup is restored to a TEST company on same SERVER, it looks like the views will still point to the production database. Is that a normal & expected behavior ? 

Categories:
  • Suggested answer
    Syrus Profile Picture
    Syrus 4,156 on at
    RE: Restoring a DB from LIVE to TEST will not update the views

    Thanks Beat

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: Restoring a DB from LIVE to TEST will not update the views

    Syed,

    it is also extremely important that you run the "Create TEST Company" SQL script from Microsoft when restoring a LIVE backup over a TEST company DB.. there are references in tables as part of the company DB that could cause errors as well. And depending on which modules you use, there might be more scripts to run...

    support.microsoft.com/.../kb-set-up-a-test-company-that-has-a-copy-of-live-company-data-for-microsoft-dynamics-gp-by-using-microsoft-sql-server-6199295b-fc49-d963-3865-2d24a4b49211

  • Syrus Profile Picture
    Syrus 4,156 on at
    RE: Restoring a DB from LIVE to TEST will not update the views

    Hi Richard,

    Thanks for your help. Yes, it is a custom view and yes the db names is somehow embedded. I was able to edit and save it.

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Restoring a DB from LIVE to TEST will not update the views

    Are these custom views? It sounds like these view have the database names embedded in them. You will need to go into SSMS and remove the database names.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans