NAV Kill Process Issues

Big_DBig_D Member Posts: 207
Hi Mibuso.com World - hope all well :D !

Wrote a routine in NAV that kills idle user processors if they surpass an hour of inactivity. One admin user logs in and runs this routine under a job queue (in NAV Client not a NAS routine). This routine works great 99% of the time but every now and again the admin user gets the error...

This message is for C/AL programmers:

The call to member Execute failed. Microsoft OLE DB Provider for SQL Server returned the following message:
User does not have permission to use the KILL statement.

The User resets the Job Queue and it works perfectly again until the above error happens again! This routine runs for weeks with no problems and then the above happens - any suggestions?

With thanks
Big D signing off!

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Without knowing the answer why your issue happens, why don't you run the script in SQL Agent? That's much easier and saves you a Navision user.
  • Big_DBig_D Member Posts: 207
    Thanks for the advice Mark - will look into.

    The routine isn't using NAS or an additional user - as I customised the routine to run the Job Queue when the admin user logs into the NAV client.

    With thanks
    Big D signing off!
Sign In or Register to comment.