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.

24 lines
726 B

1 year ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[proc_AddFunction] Script Date: 7/4/2019 11:35:48 AM ******/
  4. DROP PROCEDURE [dbo].[proc_AddFunction]
  5. GO
  6. /****** Object: StoredProcedure [dbo].[proc_AddFunction] Script Date: 7/4/2019 11:35:48 AM ******/
  7. SET ANSI_NULLS ON
  8. GO
  9. SET QUOTED_IDENTIFIER ON
  10. GO
  11. CREATE proc [dbo].[proc_AddFunction] (
  12. @FunctionId VARCHAR(8)
  13. ,@ParentFunctionId VARCHAR(8)
  14. ,@FunctionText VARCHAR(200)
  15. )
  16. AS
  17. IF NOT EXISTS (SELECT 'X' FROM applicationFunctions WHERE functionId = @FunctionId)
  18. BEGIN
  19. INSERT INTO applicationFunctions (functionId, parentFunctionId, functionName)
  20. SELECT @FunctionId, @ParentFunctionId, @FunctionText
  21. PRINT 'Added function ' + @FunctionId
  22. END
  23. GO