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

Announcements

No record found.

News and Announcements icon
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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans