USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[dt_removefromsourcecontrol] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[dt_removefromsourcecontrol] GO /****** Object: StoredProcedure [dbo].[dt_removefromsourcecontrol] Script Date: 02.12.2016 09:08:54 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER OFF GO create procedure [dbo].[dt_removefromsourcecontrol] as set nocount on declare @iPropertyObjectId int select @iPropertyObjectId = (select objectid from dbo.dtproperties where property = 'VCSProjectID') exec dbo.dt_droppropertiesbyid @iPropertyObjectId, null /* -1 is returned by dt_droppopertiesbyid */ if @@error <> 0 and @@error <> -1 return 1 return 0 GO