Summary
This article provides standardized SQL Server maintenance and tuning guidance for SKF @ptitude Analyst databases. Following these recommendations helps ensure consistent system performance, controlled database growth, and long-term stability.
These procedures apply to Microsoft SQL Server databases used with SKF @ptitude Analyst. They are intended for maintenance and performance optimization purposes and should be executed during off-peak hours whenever possible
Overview and expected results
The following tasks can be performed to improve database performance. This guidance applies to Microsoft SQL Server.
- Improve query response times
- Reduce fragmentation
- Control database and log file growth
- Increase overall system stability
Best practices
- Always perform a full database backup before maintenance.
- Avoid routine shrinking of databases.
- Rebuild indexes after any shrink operation.
- Use archiving instead of deletion when possible.
System maintenance and procedures
Rebuild indexes 
Rebuilding indexes on a regular basis, typically once or twice per week, helps improve database performance. This task can also be scheduled for standard databases.
Steps
- Log in to SQL Server Management Studio as skfuser1 (Analyst local user).
- Click New Query.
-
Execute the following command:
EXECUTE Rebuild_Index_All - Click Execute
The procedure will run and display a confirmation message when complete, including the total execution time. Depending on the size of the database, this process may take several minutes.
Shrink database and files 
Shrinking a database reduces unused space and fragmentation but should be performed only when necessary.
Important notes:
- A database cannot be shrunk to a smaller than its original size.
- Shrink operations cannot run while backups are in progress.
- Shrinking a database typically increases index fragmentation.
- Always rebuild indexes after completing a shrink operation.
Check current disk usage
- In SQL Server Management Studio, right click on the skfuser database.
- Select Reports > Standard Reports > Disk Usage.
Steps to shrink the database
- Back up the database.
- Close all active database connections.
- Log in as sa.
- Right-click the skfuser database.
- Select Tasks > Shrink > Database.
- Click OK to start the shrink operations.
- After the database shrink completes, shrink individual files if needed:
- Right-click the database again.
- Select Task > Shrink > Files.
Note: Shrinking large databases may take several hours.
For more information, refer to the relevant Microsoft documentation.
Check transaction log file size 
Excessive growth of the transaction log file can significantly increase disk usage and affect system performance.
Example issue
- MDF file: 25 GB
- LDF file: 261 GB
This can occur when transactions are written infrequently but collected often.
Resolution steps
- Ensure all users exit the application.
- Stop all related services, including: IMx Service, Transaction Server, Microlog Service.
- In SQL Server Management Studio (SSMS), right‑click the database and select: Tasks > Detach.
- Using Windows Explorer, move the skfuser.mdf to desired location.
- When prompted after detaching, remove the missing log file entry.
SQL Server will automatically create a new log file.
Clean up DeletedMeas table 
Excessive transaction log growth can significantly impact disk usage.
Steps
- Log in to SQL Server Management Studio as skfuser1.
- Open a New Query window.
-
Paste the following SQL statement:
TRUNCATE TABLE skfuser.skfuser1.DeletedMeas; - Click Execute to run the command.
Remove Marked-for-Delete records 
- Log in to SQL Server Management Studio as skfuser1.
- Open a New Query window.
-
Paste the following SQL statement:
EXECUTE dbTools_RemoveMarkedForDelete; - Click Execute to run the command.
Check for temporary tables 
Temporary tables should not normally be created. However, they may appear if @ptitude Analyst crashes while generating Workspaces.
Figure 1 Temp tables example
Removing Temporary Tables
These temporary tables can be deleted using Studio Manager.
Right‑click the table name and select Delete.
Clean up EventLog table 
Keeping the EventLog table small improves system performance. Event log maintenance can be performed automatically or manually.
Automated cleanup
- Event log purging is managed through the SKF Monitor application.
- The Archive Event Log feature is recommended for ongoing maintenance.
- As shown in Figure 2, the SKF Monitor application handles routine deletion and archiving of old event log entries.
Manual cleanup
To manually delete old event log data:
- Log in to SQL Server Management Studio using the local Analyst user.
- Open a New Query window.
- Run one of the following commands depending on the data you want to remove.
DELETE FROM skfuser.skfuser1.EVENTLOG WHERE EVENTDTG LIKE '2025%';
DELETE FROM skfuser.skfuser1.EVENTLOG WHERE EVENTDTG LIKE '202501%';
Recommended maintenance schedule 
- Index rebuild: 1–2 times per year. Run more frequently for high-write systems.
- EventLog Cleanup / Archive: Perform monthly or in accordance with your data‑retention policy.
- Marked-for-Delete Cleanup: Perform daily or weekly.
- Temporary Table Review: Perform as needed, typically after system crashes or abnormal shutdowns.
- Log file size review: Perform monthly.
- Database shrink: Only after large data deletions; avoid routine shrinking.
Expected Results 
- Improved query response times and overall application performance.
- Reduced index and file fragmentation.
- Controlled database and log file growth.
- More predictable disk usage
- Improved stability for @ptitude Analyst operations.
Contacting SKF Technical Support Group
For further assistance please open a support case using the Technical Support group's self-help portal at www.skf.com/cm/tsg. Once your support case is submitted, a technician will contact you to begin working on your issue. For urgent issues we are available at these times by phone:
- Monday through Friday, 5:00 a.m. to 4 p.m. Pacific Time -
Phone: +1 800 523 7514 within the US or +1 858 496 3627 outside the US. - Monday through Friday, 8:00 a.m. to 4:00 p.m. Central European Time -
Phone: +46 31 337 65 00. - Monday through Friday, 7:30 a.m. to 4:30 p.m. India Standard Time -
Phone: +60 16 699 9506.
Comments
0 comments
Please sign in to leave a comment.