Session Killer Problem

vikram7_dabas
Member Posts: 611
Dear Concern
I m using Navision2009SP1 in Windows server2088 and SQL Server 2008.I have created 1 report of session killer whose Ideal time is more than 1 minute.Whenever any session is killed then it is showing me following error:
ODBC Error Occured
[Microsoft][ODBC SQL Server Driver].Optional feature not implemented State ID HSC001
Please provide me solution of not getting this error.
I m using Navision2009SP1 in Windows server2088 and SQL Server 2008.I have created 1 report of session killer whose Ideal time is more than 1 minute.Whenever any session is killed then it is showing me following error:
ODBC Error Occured
[Microsoft][ODBC SQL Server Driver].Optional feature not implemented State ID HSC001
Please provide me solution of not getting this error.
Vikram Dabas
Navision Technical Consultant
Navision Technical Consultant
0
Comments
-
Can you give some more info?
E.g. how do you kill sessions?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I have created 1 form and code written on its OnTimer Trigger and set time Interval property.Give 1 field in G/L Setup where we assign minutes that when ideal time is greater than given Time then session will be killed.When I open this form my code execute and showing above given error.Vikram Dabas
Navision Technical Consultant0 -
You didn't answer the question. That's the way your function is triggered. That's not the way the session is killed."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
Session is killed by writing code which is given below:
If Session."Ideal Time"> GLSetup."Ideal time(minutes)" then
Session.delete(true);
Where,
Session Data Dype: Record Table:SessionVikram Dabas
Navision Technical Consultant0 -
This should work, I'm using same method on native and SQL databases.
I'm guessing, but for your error, I think you could have problem with column (field) type. "Ideal time" or "Idle time"? "Idle" is standard field. "Ideal" your custom field?0 -
Dear concern
I have changed the name of my field to Idea Time then also it is showing me same error.I m using O.S Windows server 2008 and SQL server 2008.Vikram Dabas
Navision Technical Consultant0 -
Use existing fields. Custom field should be type of Duration.
T:91 Enabled Field No. Field Name Data Type Length Description Yes 13031258 Idle Timeout Duration AX001
AutoLogoff() users.SETFILTER(users."Idle Timeout",'<>''''') ; IF users.FINDFIRST THEN REPEAT Sessions.SETFILTER(Sessions."User ID",'*'+users."User ID") ; IF Sessions.FINDFIRST THEN IF Sessions."Idle Time" > users."Idle Timeout" THEN BEGIN Sessions.DELETE ; MESSAGE('User %1 has been disconnected after %2.',users."User ID",users."Idle Timeout") ; END ; UNTIL users.NEXT = 0 ;
0 -
I have tried this code also then also it is showing me same error.Vikram Dabas
Navision Technical Consultant0 -
What happens if you delete a record in the session table manualy (not by code)?"Money is likewise the greatest chance and the greatest scourge of mankind."0
-
When I m deleting maually it is successfully deleted no error found but when using code same error found.Vikram Dabas
Navision Technical Consultant0 -
Any Solution :-kVikram Dabas
Navision Technical Consultant0 -
Give it a try with DELETE(FALSE) instead of DELETE(TRUE):
recSession.DELETE(FALSE);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Still same error,but error has been solved by putting Commit just after delete code.I dont know how it runs.It is not showing me any error.Can u tell me logic?Vikram Dabas
Navision Technical Consultant0 -
vikram7_dabas wrote:Still same error,but error has been solved by putting Commit just after delete code.I dont know how it runs.It is not showing me any error.Can u tell me logic?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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