Advertisement
bluebunny72

ILC_NextKeySp

Jun 6th, 2021
1,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.79 KB | None | 0 0
  1. IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ILC_NextKeySp]') AND type in (N'P', N'PC'))
  2.     DROP PROCEDURE [dbo].[ILC_NextKeySp]
  3. GO
  4.  
  5. CREATE PROCEDURE [dbo].[ILC_NextKeySp] (
  6.   @TableName        nvarchar(128)
  7. , @ColumnName       nvarchar(128)
  8. , @Context          LongListType
  9. , @Prefix           LongListType
  10. , @KeyLength        INT
  11. , @Key              LongListType OUTPUT
  12. , @Infobar          InfobarType  OUTPUT
  13. )
  14. AS
  15.  
  16. DECLARE
  17.   @Severity     INT
  18.  
  19. EXEC @Severity = SetNextKeySp
  20.   @TableName            --@TableName
  21. , @ColumnName           --@ColumnName
  22. , @Prefix               --@Prefix    
  23. , @KeyLength            --@KeyLength
  24. , @Prefix               --@Type      
  25. , NULL                  --@SubKey    
  26. , NULL                  --@TableName2
  27. , NULL                  --@SubKey2  
  28. , @Key        OUTPUT    --@KeyStr  
  29. , @Infobar    OUTPUT    --@Infobar
  30.                          
  31. RETURN @Severity         
  32.  
  33. GO
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement