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.
28 lines
1.5 KiB
28 lines
1.5 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_adduserobject] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[dt_adduserobject]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_adduserobject] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
/*
|
|
** Add an object to the dtproperties table
|
|
*/
|
|
create procedure [dbo].[dt_adduserobject]
|
|
as
|
|
set nocount on
|
|
/*
|
|
** Create the user object if it does not exist already
|
|
*/
|
|
begin transaction
|
|
insert dbo.dtproperties (property) VALUES ('DtgSchemaOBJECT')
|
|
update dbo.dtproperties set objectid=@@identity
|
|
where id=@@identity and property='DtgSchemaOBJECT'
|
|
commit
|
|
return @@identity
|
|
|
|
GO
|