Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Get SQL Server name or IP address in NAV 5 client

(0) ShareShare
ReportReport
Posted on by 805

Hi,

Is there any way to get SQL server host name or IP address where my NAV 5 client is currently connected.

I can see "Server Name" in File/Database/Information window, but how can I get this value.

In Session (virtual table) there is a Host Name field but this field stores the host where NAV client has been started.

BR,

ist 

*This post is locked for comments

  • Suggested answer
    4BzSoftware Profile Picture
    6,073 on at
    RE: Get SQL Server name or IP address in NAV 5 client

    Hi ist,

    Try this code:

    MESSAGE(CONTEXTURL);

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    RE: Get SQL Server name or IP address in NAV 5 client

    Hi,

    Refer Here - http://www.dynamics.is/?p=541

    Hope this helps.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans