UPDATE TBDD_MODULES SET DB_VERSION = '1.0.0.1' where NAME = 'Clipboard-Searcher' 
GO 
ALTER TABLE [dbo].[TBCBS_PROFILES] DROP CONSTRAINT [UQ_TBCBS_PROFILES_REGEX]
GO
CREATE PROCEDURE [dbo].[PRCW_DELETE_PROFILE](@pPROFILE_ID INT)
AS
BEGIN TRY
	delete from TBCW_PROFILE_PROCESS where PROFILE_ID = @pPROFILE_ID
	delete from TBCW_USER_PROFILE where PROFILE_ID = @pPROFILE_ID
	delete from TBCW_PROFILES where GUID = @pPROFILE_ID
END TRY
BEGIN CATCH   
	PRINT 'FEHLER IN PROCEDURE: ' + CONVERT(VARCHAR(30),ERROR_PROCEDURE()) + ' - ZEILE: ' + CONVERT(VARCHAR(10),ERROR_LINE())
	+ ' - FEHLER-MESSAGE: ' 
    + CONVERT(VARCHAR(500),ERROR_MESSAGE())
END CATCH
