I my website is based on sql server 2005 and ASP.NET 2.0. (C#) I track all the website errors thru a table called Exceptions and this table has now more than 200000 records.
I trying to clean it up a little. basically remove all the records from the years 2007 till 2011.
how can i do this without impacting the site as well as the database.
my table is as follows
/****** Object: Table [dbo].[ExceptionLog] *****/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_PADDING ON
CREATE TABLE [dbo].[ExceptionLog](
[Id] [int] IDENTITY(1,1) NOT NULL,
[ExceptionMessage] [varchar](max) NOT NULL,
[ExceptionTime] [datetime] NOT NULL,
CONSTRAINT [PK_ExceptionLog] PRIMARY KEY CLUSTERED
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
SET ANSI_PADDING OFF
Thanks and appreciate it