How to recognize Client PC
navuser1
Member Posts: 1,334
Dear All,
Is there any possibility to know unique Id (like name, IP, etc.) of a Client PC which is accessing my NAV 2013 R2 database through NAV-tier ?
Kindly inform.
Is there any possibility to know unique Id (like name, IP, etc.) of a Client PC which is accessing my NAV 2013 R2 database through NAV-tier ?
Kindly inform.
Now or Never
0
Answers
-
Hi, there are two ways that I know of:
1) Create A Function that will return the current computername:PROCEDURE GetCurrentComputerName@1000000000() ComputerName : Text[100]; VAR WshNetwork@1000000000 : Automation "{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} 1.0:{093FF999-1EA0-4079-9525-9614C3504B74}:'Windows Script Host Object Model'.WshNetwork"; BEGIN CLEAR(WshNetwork); CREATE(WshNetwork,TRUE,TRUE); ComputerName := WshNetwork.ComputerName; END;
2) Check the Session table. It has a column "Client Computer Name". If you want to get the Client Name visible in the RTC, you might have to add this column to the Session List Page.0 -
MarvinPowell wrote:Hi, there are two ways that I know of:
1) Create A Function that will return the current computername:PROCEDURE GetCurrentComputerName@1000000000() ComputerName : Text[100]; VAR WshNetwork@1000000000 : Automation "{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} 1.0:{093FF999-1EA0-4079-9525-9614C3504B74}:'Windows Script Host Object Model'.WshNetwork"; BEGIN CLEAR(WshNetwork); CREATE(WshNetwork,TRUE,TRUE); ComputerName := WshNetwork.ComputerName; END;
2) Check the Session table. It has a column "Client Computer Name". If you want to get the Client Name visible in the RTC, you might have to add this column to the Session List Page.
No. 1 is working fine but I have not found the column name Client Computer Name in the Session Table..Now or Never0 -
Hi,
I've checked in NAV 2013 and NAV 2013 R2:
Table ID: 2000000110 - Active Session
Field No.: 8 - Client Computer Name
That field should give you the client pc name. :thumbsup:0 -
=D>Now or Never0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions