How to kill a remote session?
Deep
Member Posts: 569
Hi all.
Is there any utility which can kill a remote session over NAV 4.0.
The DB used is native DB
Is there any utility which can kill a remote session over NAV 4.0.
The DB used is native DB
Regards,
Deep
India
Deep
India
0
Comments
-
if you are talking about session killing then see this link.
http://www.mibuso.com/forum/viewtopic.p ... ssion+killExperience Makes Man Perfect....
Rajesh Patel0 -
This seems for SQL database.
I need this for a native DB.Regards,
Deep
India0 -
0
-
This also works for native : http://www.mibuso.com/howtoinfo.asp?FileID=18Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks a lot friends.Regards,
Deep
India0 -
hello raj,
if i am using a local database can i kill my session???
since i am trying this example in my laptop and not in a server where lots of people are using my databse i cant test it. can i test this in local databse?? i created the single instance codeunit but where from shoiuld i call this codeunit to run close sessions??
pls advise as i m new to navision i have little knowledge only
thanks in advancerajpatelbca wrote:if you are talking about session killing then see this link.
http://www.mibuso.com/forum/viewtopic.p ... ssion+killThanks and Regards
Vineeth.R0 -
You can open the same local DB multiple times if you use the same fin.exe.
If you put code in the OnRun-trigger of the singleinstance codeunit to initiate the timer, you can just run the codeunit from the object designer.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Kriki
If I will create the Report (Processonly) by taking DataItem(Session) and give filter to Login type to(Windows) then will it work in SQL DB.Vikram Dabas
Navision Technical Consultant0 -
I am not sure I understand what you want to do. :oops:vikram7_dabas wrote:Dear Kriki
If I will create the Report (Processonly) by taking DataItem(Session) and give filter to Login type to(Windows) then will it work in SQL DB.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hi kriki,
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
thanks Vineethkriki wrote:You can open the same local DB multiple times if you use the same fin.exe.
If you put code in the OnRun-trigger of the singleinstance codeunit to initiate the timer, you can just run the codeunit from the object designer.Thanks and Regards
Vineeth.R0 -
I never saw that error. :shock:
Try to use the debugger to see if you find something more on the command that creates the error.Vineeth.R wrote:hi kriki,
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
thanks Vineethkriki wrote:You can open the same local DB multiple times if you use the same fin.exe.
If you put code in the OnRun-trigger of the singleinstance codeunit to initiate the timer, you can just run the codeunit from the object designer.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Kirki
this is my single instance codeunit coding to kill a session
OnRun()
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.StartTimer(6000);
Code;
Code()
Session.SETRANGE("My Session",FALSE);
Session.SETFILTER("Idle Time",'>100 min');
IF Session.FINDFIRST THEN REPEAT
Session.DELETE;//Debugger stops here saying "you cannot delete a session when u r not connected to server
COMMIT;
UNTIL Session.NEXT = 0;
how to solve it.. i tried it by opening two fin.exe and running this codeunit in onekriki wrote:I never saw that error. :shock:
Try to use the debugger to see if you find something more on the command that creates the error.Vineeth.R wrote:hi kriki,
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
thanks Vineethkriki wrote:You can open the same local DB multiple times if you use the same fin.exe.
If you put code in the OnRun-trigger of the singleinstance codeunit to initiate the timer, you can just run the codeunit from the object designer.Thanks and Regards
Vineeth.R0 -
Try something like this:
Session.RESET; Session.SETRANGE("My Session",FALSE); Session.SETFILTER("Idle Time",'>100 min'); IF Session.FINDSET THEN REPEAT Session2 := Session; Session2.FIND('='); Session2.DELETE(TRUE); UNTIL Session.NEXT = 0;Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
