It looks like you're dealing with a full SQL database in FactoryTalk View SE. Given that you're using the Express version with a 10GB limit, you'll need to free up some space to get things running smoothly again. Here’s a step-by-step approach you can try:
Backup Your Database: Before
making any changes, ensure you back up your database. This way, you can restore it if something goes wrong.
Connect to SQL Server Management Studio (SSMS):
Open SSMS and connect to your SQL Server instance.
Identify Tables with Old Data:
In the Object Explorer, expand your database and then expand the "Tables" folder.
Look for tables related to your trends or data storage.
Run Queries to Remove Old Data:
You can use SQL queries to delete data from these tables. For example:
sql
Copy code
DELETE FROM [YourTableName]
WHERE [YourDateColumn] < DATEADD(MONTH, -3, GETDATE())
Replace [YourTableName] with the name of your table and [YourDateColumn] with the column that holds the date information. This query will delete records older than 3 months.
Rebuild Indexes:
After deleting a significant amount of data, it’s a good idea to rebuild indexes to reclaim space and optimize performance. You can do this using:
sql
Copy code
ALTER INDEX ALL ON [YourTableName] REBUILD
Shrink the Database:
If you find that your database size hasn’t decreased much after deleting data, you might need to shrink it. Right-click on the database in SSMS, go to “Tasks” > “Shrink” > “Database”. Be cautious with this step, as frequent shrinking can lead to fragmentation.
Verify Database Configuration:
Double-check your database settings in FTView to ensure that purging records after 12 months is set up correctly. Since your plant isn't 12 months old, the purging might not have kicked in yet.
By following these steps, you should be able to free up some space in your existing database. If you’re unsure about executing SQL commands, consider getting assistance from someone with more SQL experience to avoid accidental data loss.
Hope this helps!