Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP 2013 - get actual DSN name when GP is RUN

Posted on by 1,240

Dear friends !!!

I am checking GP 2013 with multiple DSN and companies on a single machine. I noticed while checking that it prompts you exact companies only when you run GP from specified folder only. Suppose I have created two Dynamics database and attached companies in following way-

case 1 : C:\Program Files (x86)\Microsoft Dynamics\GP2013$INDYNA3 (Related to Dynamics named "DYNA3" with DSN named "Dynamics GP 2013 - 01")

case 2 : C:\Program Files (x86)\Microsoft Dynamics\GP2013$INDYNA4 (Related to Dynamics named "DYNA4" with DSN named "Dynamics GP 2013 - 02")

Suppose in case 1, if I run GP from the specified folder and even if I choose incorrect DSN  "Dynamics GP 2013 - 02" ( which is wrong but GP allows it to do so), it will list companies related to  "Dynamics GP 2013 - 01" only.

My scenario : I am working on ad ADDON project and maitain the database information to create SysAdmin and Company connections. I do not want user to choose a wrong DSN and select the right company. I either want to propmt a proper message then terminate the application OR I would wish to get the correct DSN name even if it was wrongly choosen. Is there any way so that I may get DSN name when I run GP.EXE from appropriate folder,

 

 

 

 

 

*This post is locked for comments

  • Jitendra Verma Profile Picture
    Jitendra Verma 1,240 on at
    RE: GP 2013 - get actual DSN name when GP is RUN

    it created DSN names automatically when I created it multiple times.

  • Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: GP 2013 - get actual DSN name when GP is RUN

    I have had problems with spaces in DSN names.Try creating DSNDynamicsGp201301 et cetera

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans