Submit a ticketCall us

Announcing NCM 7.7
With NCM 7.7, you can examine the rules that make up an access control list for a Cisco ASA device. Then you can apply filters to display only rules that meet the specified criteria, order the rules by line number or by the hit count, and much more.
See new features and improvements.

Home > Success Center > Server & Application Monitor (SAM) > Truncate large APM HardwareItem tables

Truncate large APM HardwareItem tables

Table of contents
Created by Malik Haider, last modified by Malik Haider on Jul 30, 2016

Views: 139 Votes: 0 Revisions: 7

Updated July 22, 2016


This article describes how to truncate APM_HardwareItem tables holding large historical data for SAM, which only contain device hardware statuses. Truncating these tables will involve re-polling the current status of the hardware and re-populating the table. 


Truncating tables will reduce the database size significantly and help the application and database perform faster including loading data on the website.   


Note: This article is part of the Quick Orion database health check guide. SolarWinds strongly recommends to go through the full guide and check your current database health and settings. 


table_name rows size_in_kb
APM_HardwareItem_Detail 1381684300 11860320
APM_HardwareItem_Hourly 69985120 4248400
APM_HardwareItem_Daily 34829770 2279760




SAM 6.0 and later


  1. Create a backup of your Orion database. Refer to Backing Up, Restoring, and Migrating Your Orion Database.
  2. Run the following SQL query through Database Manager. Refer to Run an SQL query in Orion Database Manager on Windows Server 2008.
    Truncate table     APM_HardwareItem_Detail
    Truncate table     APM_HardwareItem_Hourly
    Truncate table     APM_HardwareItem_Daily
  3. Click Execute Query.
  4. Shrink the Orion Database  to reclaim the unused free space.




Last modified
05:13, 30 Jul 2016