SQL
USE [PrintMonitor]
GO
/****** Object:  StoredProcedure [dbo].[Delete_Document_Category]    Script Date: 10/15/2008 20:44:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[Delete_Document_Category]
	(
		@Category_Type varchar(25),
		@Category_Name varchar(50)
	)
AS
	
	DELETE dbo.[Categorised Documents]
	 WHERE  [Category Type] = @Category_Type
	   AND  [Category Name] = @Category_Name
	   
	
	DELETE dbo.[Automatic Document Categorisation]
	 WHERE  [Category Type] = @Category_Type
	   AND  [Category Name] = @Category_Name
	   
	DELETE dbo.[Document Categories]
	 WHERE  [Category Type] = @Category_Type
	   AND  [Category Name] = @Category_Name
	
	
	RETURN 

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

Comments

No comments yet.