web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Solved: GPConnNet & Dynamics.Globals : SQL Connection

(0) ShareShare
ReportReport
Posted on by 1,588

Solution: I had entered the GPConnNet key incorrectly. It had a double quote in it which I did not realize was part of the key.

See screenshot: https://www.screencast.com/t/scFgA0xV

I am failing to create a connection using GPConnNet. I believe it is due to sending GPConnection.Connect() incomplete information on its DsnName parameter.

The example I am working from sends Dynamics.Globals.SqlDataSourceName.Value. I have printed this out to a file for verification and I find that value is RUBIN2014 which is my named SQL instance but without the <server> portion. The full name of the server is R90HGYQV\RUBIN2014. Would you concur with my assessment and how do I get the proper value to send to the Connect() method?

*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans