Backup your current SIM DB,
Stop SIM Service
Open in SQL Management Studio for the SQL server. Right click the SIM db -> Run Query
-- for information
select count (*)
from notices
where (
(noticeType != 1 ) and
(noticeSeverity = 100)
)
Also run this task to delete old task results with SQL studio:
delete from hpmxAutomationTaskResults
4) Open a command prompt on the sim server and run (from any directory) : mxconfigrepo –f
5) Restart SIM service
Run the folowing sql script to where all the used space is:
SELECT s.Name AS SchemaName, t.NAME AS TableName, p.rowsAS RowCounts, SUM(a.total_pages)*8AS TotalSpaceKB, SUM(a.used_pages)*8AS UsedSpaceKB,(SUM(a.total_pages)- SUM(a.used_pages))*8AS UnusedSpaceKBFROM sys.tables tINNERJOIN sys.schemas s ON s.schema_id = t.schema_idINNERJOIN sys.indexes i ON t.OBJECT_ID = i.object_idINNERJOIN sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_idINNERJOIN sys.allocation_units a ON p.partition_id = a.container_idWHERE t.NAME NOTLIKE'dt%'-- filter out system tables for diagrammingAND t.is_ms_shipped =0AND i.OBJECT_ID >255GROUPBY t.Name, s.Name, p.RowsORDERBY s.Name, t.Name