You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.7 KiB
31 lines
1.7 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_droppropertiesbyid] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[dt_droppropertiesbyid]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_droppropertiesbyid] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
/*
|
|
** Drop one or all the associated properties of an object or an attribute
|
|
**
|
|
** dt_dropproperties objid, null or '' -- drop all properties of the object itself
|
|
** dt_dropproperties objid, property -- drop the property
|
|
*/
|
|
create procedure [dbo].[dt_droppropertiesbyid]
|
|
@id int,
|
|
@property varchar(64)
|
|
as
|
|
set nocount on
|
|
|
|
if (@property is null) or (@property = '')
|
|
delete from dbo.dtproperties where objectid=@id
|
|
else
|
|
delete from dbo.dtproperties
|
|
where objectid=@id and property=@property
|
|
|
|
|
|
GO
|