Commit ee401d221938a568709bae41b00fc3d25dfba5e6

Authored by Amrita Vishnoi
1 parent 722dae14

come after develop check out

500-DBDump/AIA-StoredProcedures/usp_CheckDuplicateLicenseUserGroup.sql 0 → 100644
1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/usp_CheckDuplicateLicenseUserGroup.sql differ 1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/usp_CheckDuplicateLicenseUserGroup.sql differ
500-DBDump/AIA-StoredProcedures/usp_CheckSubscriptionForLicense.sql 0 → 100644
  1 +USE [AIADatabaseV5]
  2 +GO
  3 +/****** Object: StoredProcedure [dbo].[usp_CheckSubscriptionForLicense] Script Date: 2/1/2018 12:15:55 PM ******/
  4 +SET ANSI_NULLS ON
  5 +GO
  6 +SET QUOTED_IDENTIFIER ON
  7 +GO
  8 +
  9 +-- ====================================================
  10 +-- Author: Magic Software
  11 +-- Create date: 22-May-2018
  12 +-- Description: To check the licenses exist for a subscription plan
  13 +-- ====================================================
  14 +
  15 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_CheckSubscriptionForLicense]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  16 +drop procedure [dbo].[usp_CheckSubscriptionForLicense]
  17 +GO
  18 +
  19 +create PROCEDURE [dbo].[usp_CheckSubscriptionForLicense]
  20 + -- Add the parameters for the stored procedure here
  21 + @Id tinyint,
  22 + @Status bit out
  23 +AS
  24 +BEGIN
  25 + -- SET NOCOUNT ON added to prevent extra result sets from
  26 + -- interfering with SELECT statements.
  27 + SET NOCOUNT ON;
  28 +
  29 + set @Status = 0;
  30 + if(exists(select * from [LicenseSubscriptionDetail] where SubscriptionPlanId = @Id))
  31 + begin
  32 + set @Status = 1;
  33 + end
  34 +
  35 +END
  36 +
  37 +
  38 +GO