How do I purge data off of an MSDE database. I only want to keep 6 months of data in the database. Right now I have data going back to 2004. I get errors about every 10 seconds. "Primary File Group is Full" is the error I am getting.
Getting started with SQL Server
How do I purge data off of an MSDE database. I only want to keep 6 months of data in the database. Right now I have data going back to 2004. I get errors about every 10 seconds. "Primary File Group is Full" is the error I am getting.
Hi,
you may archive it to another database/server, refer http://www.sql-server-performance.com/forum/topic.asp TOPIC_ID=8846 http://sqljunkies.com/Forums/ShowPost.aspx PostID=1855 and http://www.sqlnewsgroups.net/group/microsoft.public.sqlserver.server/topic814.aspx for "Primary File Group is Full" error.
Hemantgiri S. Goswami
Hi,
So basically what you are telling me is that there is no way to purge data off an MSDE database
SELECT
'DELETE FROM ' + '[' + TABLE_SCHEMA + ']' + '.' + '[' + TABLE_NAME + '] WHERE SomeDateColumn >= DATEADD(m,-6,GETDATE())'FROM
INFORMATION_SCHEMA.TABLESWHERE
OBJECTPROPERTY(OBJECT_ID('[' + TABLE_SCHEMA + ']' + '.' + '[' + TABLE_NAME + ']'), 'IsMSShipped') = 0Hi,
Travis H wrote:
Hi,
So basically what you are telling me is that there is no way to purge data off an MSDE database
Re: Purging data off of an MSDE database.
Jens K. Suessmeyer
Depending on your version and edition you could also use horizantal partitioning which would move the older records to the other partition on probably another file group.
HTH, jens K. Suessmeyer.
---
http://www.sqlserver2005.de
---