How to remove all the Transactions associated with a Printer.
  • 18 Apr 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

How to remove all the Transactions associated with a Printer.

  • Dark
    Light
  • PDF

Article summary

Problem:

How to remove all the Transactions associated with a Printer and resource usages.


Cause:

Resource usages are not removed along with transactions. They need to be purged manually.

Solution:

This can be done using SQL Query Analyzer, by running the commands listed below:

----------------------------------

use pharos

select * from resource_usages

update resource_usages

set num_jobs = '0'
where ref_id = 'ID OF THE PRINTER'

update resource_usages

set num_units = '0'
where ref_id = 'ID OF THE PRINTER'

update resource_usages

set num_sheets = '0'
where ref_id = 'ID OF THE PRINTER'

----------------------------------

As an alternative to ref_id, you can use ref_type.

(where ref_type = 'P') - this will remove all resource usage records for all the printers.


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.