1 DECLARE @IsDuplicate BIT
2
3 IF EXISTS(SELECT * FROM dbo.ListData WHERE [description] = @description AND [dataTypeId] = @dataTypeId) -- Checking if duplicate name
4 SET @IsDuplicate = 1
5
6 ELSE
7 BEGIN
8
9 END
10