I have a table with a varchar(max)
column that stores text ~4-10KB in size. Data is just being added – never modified, it is a log. My problem is that a table grows too large in size – I would like to keep about 1000000 rows in this table.
I am limited to SQL Server Express and hit the limit on database size. Compression is not available in SQL Server Express and I afraid that Filestream may not be appropriate and the number of files would be too big.
What is the best solution in this case?
Best Answer
Because this is a log of sort, and you have space limitations on your database (due to your Express edition) I would recommend either archiving your historical log data away from the database or simply deleting data that is older than a certain elapsed duration threshold. It is not uncommon to have an agreement that history is retained only for a certain time period. Just ensure this is covered in your service level agreement provided it pertains.