Killing sessions in pre 4.0 Native database

Urmas
Member Posts: 76
Just had such problem in one daughter company where the licenses were used up. And - naturally the solution is quite simple.
You can download a freeware application from SysInternals webpage http://www.sysinternals.com named "tcpview". This nice program displays all established TCP connections from your Native database server. Also it allows you to terminate the connection easily.
In order to do so, you have to run it on the server, but this should not be a problem for a administrator.
I added also a small piece of code to codeunit 1 to extract the computername from environment and connect it with session ID, so I know what computer I have to disconnect. I think there is also a way extracting the connecting port somehow, so also exact session in computer can be terminated.
You can download a freeware application from SysInternals webpage http://www.sysinternals.com named "tcpview". This nice program displays all established TCP connections from your Native database server. Also it allows you to terminate the connection easily.
In order to do so, you have to run it on the server, but this should not be a problem for a administrator.
I added also a small piece of code to codeunit 1 to extract the computername from environment and connect it with session ID, so I know what computer I have to disconnect. I think there is also a way extracting the connecting port somehow, so also exact session in computer can be terminated.
0
Comments
-
An issue i've come across is a user will have multiple clients running on the PC, but only logged into one of them. Navision doesn't seem to care whether the user is logged in or not, if the client app is loaded it will take up a license.
Will this app be able to kill connections from clients that are not logged in? (i.e. shut down the client)0 -
Yes - it will kill the connection. However the client application itself is not terminated and user receives an communication error if he/she tries to access database through it. The Navision licence is freed immideately after the connection has been terminated - it is dependant of connection, not the state of client application.
It can be tricky to understand what connection belongs to what application (if an user uses more than one of those). One way to do it is to record the actual port the client is using on application startup in database using information obtained from Netstat.0
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
- 320 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