Skip to main content

Notifications

Announcements

No record found.

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
    4BzSoftware 6,071 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
    Saurav.Dhyani 17,965 Super User 2024 Season 2 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

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans