Skip to content
Advertisement

How to delete a stored procedure?

Using this we can create procedure then how to delete,alter…etc,Can any one help me how to delete procedure.

USE [PSI Data]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure[dbo].[savepsi]
 @Psiid int,
 @Name varchar(50),
 @DOB int,
 @Sex varchar(50),
 @Mobile int,
 @Cusaddress varchar(50),
 @Product varchar(50),
 @Amount int

 as

 begin

 insert Psitable(Psiid,Name,DOB,Sex,Mobile,Cusaddress,Product,Amount)
 Values (@Psiid,@Name,@DOB,@Sex,@Mobile,@Cusaddress,@Product,@Amount)

 end

Advertisement

Answer

Try this

USE [PSI Data] DROP PROCEDURE [dbo].[savepsi]; GO

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement