Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

SQL command to update store databased HQ id's in the tender table

(0) ShareShare
ReportReport
Posted on by 275

I need to run a command to first find out the HQ id's for a particular tender type in our HQ database and then also run a command to update the HQ ID for that particular tender in each store's database so that they match.

We are having problems right now with matching ids due to a tender which was deleted and readded, in error. Can someone kindly assist?

Note that i have no real SQL knowledge and would appreciate the full commands.

Thanks.

*This post is locked for comments

  • Re: SQL command to update store databased HQ id's in the tender table

    First create and approve the worksheet for tender types - this will overwrite the tenders at the stores (all stores will have all the tenders in hq; if a certain tender is not used at a specific store, delete it at that store)

     then check if the ids match, at hq run - SELECT ID FROM TENDER, at the stores run - SELECT HQID FROM TENDER

    The store hqid should match the hq id values  --  hope this helps.

  • Gilbert Khayat Profile Picture
    Gilbert Khayat 3,252 on at
    Re: SQL command to update store databased HQ id's in the tender table
    This problems occurs when you hook the visa pin pad and it creates a different tender ID not matching the HQ tender ID. Please email me gilbertgk@hotmail.com. I can show how you can solve it. It is not complex.
  • Re: SQL command to update store databased HQ id's in the tender table

     playing with sql is dangers and you may lose your data, hire some one professional to do this, and I'm sure this will be better than losing or corrupting your databases.

     

    note; you will need to make many changes to many tables at each of stores and HQ (while stopping connections).

     

     

    Mohammed El-Qadi

    http://www.fact.fm/viewforum.php?f=30

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans