SQL
USE [PrintMonitor]
GO
/****** Object:  StoredProcedure [dbo].[Purge_Print_Job_Events]    Script Date: 10/15/2008 21:23:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


CREATE PROCEDURE [dbo].[Purge_Print_Job_Events]
   (
    @cutoff_date DATETIME
   )
AS 
BEGIN

  DELETE dbo.[Print Job Events]
   WHERE Submitted < @cutoff_date  

  RETURN
END

Last edited Oct 15, 2008 at 8:23 PM by Merrion, version 1

Comments

No comments yet.