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.
ITSM/.svn/pristine/30/3048388841d85cfb4a9c5a9556f...

35 lines
1.7 KiB

USE [Vertragsverwaltung_20160404]
GO
/****** Object: StoredProcedure [dbo].[dt_getobjwithprop_u] Script Date: 02.12.2016 09:08:54 ******/
DROP PROCEDURE [dbo].[dt_getobjwithprop_u]
GO
/****** Object: StoredProcedure [dbo].[dt_getobjwithprop_u] Script Date: 02.12.2016 09:08:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
/*
** Retrieve the owner object(s) of a given property
*/
create procedure [dbo].[dt_getobjwithprop_u]
@property varchar(30),
@uvalue nvarchar(255)
as
set nocount on
if (@property is null) or (@property = '')
begin
raiserror('Must specify a property name.',-1,-1)
return (1)
end
if (@uvalue is null)
select objectid id from dbo.dtproperties
where property=@property
else
select objectid id from dbo.dtproperties
where property=@property and uvalue=@uvalue
GO