if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sp_Queue]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[Sp_Queue]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SearchKala]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[SearchKala]
