﻿IF (OBJECT_ID('CK_GuidValidation', 'C') IS NOT NULL)
BEGIN
    ALTER TABLE [dbo].[T_FELHASZNALOBELEPES] DROP CONSTRAINT [CK_GuidValidation]
END

IF (OBJECT_ID('CK_FELHASZNALOBELEPES_GuidValidation', 'C') IS NOT NULL)
BEGIN
    ALTER TABLE [dbo].[T_FELHASZNALOBELEPES] DROP CONSTRAINT [CK_FELHASZNALOBELEPES_GuidValidation]
END

IF OBJECT_ID('dbo.fnGuidValidation') IS NOT NULL BEGIN
  DROP FUNCTION dbo.fnGuidValidation
END