Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Search and Replace Values throughout a database

Posted on by Microsoft Employee

I have a customer looking to "re-implement" multi-currency. They have multiple companies with transactions in each. They have not actually been using rates or currency translations, so far. The problem is that some companies show a functional currency ID of Z-US$, USD, or Z-USD (for example). Of course, I get the "Activity for this functional currency already exists. The functional currency can't be changed." message. I am thinking I need only update the currency IDs to be on my merry way with the re-implementation.

Companies do not all use the same modules, so a static script won't do. I want to avoid having to re-implement each company. To that end, does anyone have a script which would go through all the tables and replace Z-US$ with USD (for example)?

I found this script which does a nice job of finding the values, but I need a script which could replace the value wherever it is found. I vaguely recall there was a utility years back which could do this, but I do not recall who made it or the product name and The Google seems to have been cluttered with other things since.

http://www.gp-dynamics.com/dynamics-gp-command-details.asp?id=90

Thanks in advance!

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Search and Replace Values throughout a database

    Thank you for your reply, but I did manage to resolve the problem. I thought I'd successfully deleted the question, but it seems it is still here.  

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Search and Replace Values throughout a database

    Thank you for your reply, but I did manage to resolve the problem. I thought I'd successfully deleted the question, but it seems it is still here.  

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Search and Replace Values throughout a database

    Take a look into the following article, it might help:

    mohdaoud.blogspot.com/.../search-all-columns-of-all-tables-for_6073.html

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans