This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
USE [Vertragsverwaltung_20160404]
GO
/****** Object: UserDefinedFunction [dbo].[_count_Appl_Kontakt] Script Date: 02.12.2016 09:08:53 ******/
DROP FUNCTION [dbo].[_count_Appl_Kontakt]
/****** Object: UserDefinedFunction [dbo].[_count_Appl_Kontakt] Script Date: 02.12.2016 09:08:55 ******/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE FUNCTION [dbo].[_count_Appl_Kontakt]
(
@applnr int
)
RETURNS int
AS
BEGIN
declare @rc int
select @rc=count(ApplikationKontaktnr) from applikationkontakt where applikationnr=@applnr and aktiv=1
RETURN @rc
END