Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Answered

Changing SQL database name for GP

Posted on by 75,730

I just completed an SBF 8 to GP 2013 upgrade for 24 companies. The way SBF named the databases was SBMNN where NN is 1, 2, 3, etc. So now I have 24 databases named SBM01..SBM24. If I were to rename the databases to a more descriptive ID(INTERID) would I need to update any tables in the DYNAMCIS or GP company databases with these new IDs?

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Changing SQL database name for GP

    Good point folks. I will just leave the names alone unless the client really wants to invest in changing them.

  • Suggested answer
    Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: Changing SQL database name for GP

    The database name is "explicitly "stored in several tables, using the widely common SearchAllDB.sql script to search all database for the "CompanyName" would be considerable in assessing the degree to which manual configuration or customer scripting is applied.

  • Suggested answer
    Ian Grieve Profile Picture
    Ian Grieve 22,782 on at
    RE: Changing SQL database name for GP

    Hi Richard,

    You can't just rename a database; there are all sorts of tables entries and compiled sprocs which would cause problems.

    I'd recommend creating the new databases (copying access from the current ones) and then backing up and restoring the databases (as the KB article posted by Sanjay covers). After this has been done (and tested) the original numbered databases can be deleted.

    Be aware that there are modules such as Fixed Assets with settings in the system database which will need to be configured manually or via custom script.

    Ian

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Changing SQL database name for GP

    Richard,

    This article will assist you with your requirement.  

    support.microsoft.com/.../871973

    Cheers!

    Sanjay

    PS - If  my response resolves your requirement, mark this post as verified.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans