代码如下: –方式一 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[USP_ProcedureWithTransaction_Demo]’) and OBJECTPROPERTY(id, N’IsProcedure’) = 1) drop procedure [dbo].[USP_ProcedureWithTransaction_Demo] GO — ==========================