Client terminates and SQL-Database corrupted?

fraiser
Member Posts: 5
Hi,
I just want to restart a Navision Client automatically. For that I wrote a simple batch file which terminates the client process (finsql.exe) using a tool similar to taskkill.exe.
Does this have negative effects to the SQL-Server when the client terminates by killing the process?
I suppose the data will be lost which has been processed by the client at the moment when the client terminates … but does this produce any inconsistence/corruptions at the server side SQL-Database?
Thanks for your help!
I just want to restart a Navision Client automatically. For that I wrote a simple batch file which terminates the client process (finsql.exe) using a tool similar to taskkill.exe.
Does this have negative effects to the SQL-Server when the client terminates by killing the process?
I suppose the data will be lost which has been processed by the client at the moment when the client terminates … but does this produce any inconsistence/corruptions at the server side SQL-Database?
Thanks for your help!
0
Comments
-
If the C/AL code that is running on the client is OK, it will be no problem. The current transaction will be rolled back on the server.
The problem can happen if there are COMMIT's in parts of a program that should be processed completely or NOT at all.
E.g. : you change dimension 1 in a table and then you do a COMMIT and then you change it in the dimension table. This should happen in 1 go.
If just after the COMMIT, there is a crash, the dimension 1 in your table will have changed but NOT in the dimension table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Concern
Put the filter of Ideal time in Session table of few seconds, then run ur code 4 termination.Then there will be no effect on SQL DB.Vikram Dabas
Navision Technical Consultant0 -
vikram7_dabas wrote:Put the filter of Ideal time in Session table of few seconds, then run ur code 4 termination.Then there will be no effect on SQL DB.0
-
Dear Denstr
I means that when session's Ideal time is more than some minutes than at that time no C/AL is running,means Line is clear thats y I gave that answer.Vikram Dabas
Navision Technical Consultant0 -
Oh you are talking about IDLE time. I see what you mean now, and it does make sense to restrict it somewhat with a threshold on idle time. You can't tell by looking at the Sessions view whether any C/AL is running though, so that advice still is not correct. You can start a report that runs for 2 hours, and you can't use your session for that time. The idle time will reflect that you are idle, but there's a lot of C/AL activity.0
-
Dear Denstr
U are saying "The idle time will reflect that you are idle, but there's a lot of C/AL activity" please explain me which type of C/AL activity run if there IDEAL time is more than 2 minutes.Vikram Dabas
Navision Technical Consultant0 -
Say you start a report that runs for 5 minutes at exactly 11 o'clock. At 11:03 the idle time will say 3 minutes, even though the report is still running. You kill that session, you also kill that session's report, which is executing C/AL code at that time. Idle time does not always mean there is nothing going on in that session.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